Skip to content

Commit 23e6888

Browse files
committed
reformat usage message
1 parent 220f358 commit 23e6888

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tabulate.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -938,21 +938,22 @@ def _format_table(fmt, headers, rows, colwidths, colaligns):
938938

939939
def _main():
940940
"""\
941-
Usage: tabulate [options] [FILENAME]
941+
Usage: tabulate [options] [FILE ...]
942942
943943
Pretty-print tabular data. See also https://bitbucket.org/astanin/python-tabulate
944944
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.
946947
947948
Options:
948949
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)
956957
"""
957958
import getopt
958959
import sys

0 commit comments

Comments
 (0)