Skip to content

Commit

Permalink
csvformat: Use -E as short for --skip-header (second letter of a word…
Browse files Browse the repository at this point in the history
…, like -K for --skip-lines
  • Loading branch information
jpmckinney committed Oct 17, 2023
1 parent f91faa4 commit bcf65c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion csvkit/utilities/csvformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CSVFormat(CSVKitUtility):

def add_arguments(self):
self.argparser.add_argument(
'--skip-header', dest='skip_header', action='store_true',
'-E', '--skip-header', dest='skip_header', action='store_true',
help='Do not output a header row.')
self.argparser.add_argument(
'-D', '--out-delimiter', dest='out_delimiter',
Expand Down
8 changes: 4 additions & 4 deletions docs/scripts/csvformat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Convert a CSV file to a custom output format.:
usage: csvformat [-h] [-d DELIMITER] [-t] [-q QUOTECHAR] [-u {0,1,2,3}] [-b]
[-p ESCAPECHAR] [-z FIELD_SIZE_LIMIT] [-e ENCODING] [-S] [-H]
[-K SKIP_LINES] [-v] [-l] [--zero] [-V] [-D OUT_DELIMITER]
[-T] [-Q OUT_QUOTECHAR] [-U {0,1,2,3}] [-B]
[-P OUT_ESCAPECHAR] [-M OUT_LINETERMINATOR]
[-K SKIP_LINES] [-v] [-l] [--zero] [-V] [-E]
[-D OUT_DELIMITER] [-T] [-Q OUT_QUOTECHAR] [-U {0,1,2,3}]
[-B] [-P OUT_ESCAPECHAR] [-M OUT_LINETERMINATOR]
[FILE]
Convert a CSV file to a custom output format.
Expand All @@ -24,7 +24,7 @@ Convert a CSV file to a custom output format.:
optional arguments:
-h, --help show this help message and exit
--skip-header Do not output a header row.
-E, --skip-header Do not output a header row.
-D OUT_DELIMITER, --out-delimiter OUT_DELIMITER
Delimiting character of the output CSV file.
-T, --out-tabs Specify that the output CSV file is delimited with
Expand Down

0 comments on commit bcf65c9

Please sign in to comment.