@@ -938,21 +938,22 @@ def _format_table(fmt, headers, rows, colwidths, colaligns):
938
938
939
939
def _main ():
940
940
"""\
941
- Usage: tabulate [options] [FILENAME ]
941
+ Usage: tabulate [options] [FILE ... ]
942
942
943
943
Pretty-print tabular data. See also https://bitbucket.org/astanin/python-tabulate
944
944
945
- FILENAME if "-" or missing, read data from stdin.
945
+ FILE a filename of the file with tabular data;
946
+ if "-" or missing, read data from stdin.
946
947
947
948
Options:
948
949
949
- -1 , --header use the first row of data as a table header
950
- -f FMT , --format FMT table format; supported table formats are
951
- plain, simple, grid, pipe, orgtbl, rst,
952
- mediawiki, latex, latex_booktabs (default: simple)
953
- -s S, --sep SEP a regular expression to split columns (default: '\s+')
954
- -h, --help show this message
955
-
950
+ -h , --help show this message
951
+ -1 , --header use the first row of data as a table header
952
+ -s REGEXP, --sep REGEXP use a custom column separator (default: whitespace)
953
+ -f FMT, --format FMT set output table format;
954
+ supported formats: plain, simple, grid, pipe,
955
+ orgtbl, rst, mediawiki, latex, latex_booktabs
956
+ (default: simple)
956
957
"""
957
958
import getopt
958
959
import sys
0 commit comments