From bcf65c95320160f1b80cb0966c98bfb3f1786947 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:01:59 -0400 Subject: [PATCH] csvformat: Use -E as short for --skip-header (second letter of a word, like -K for --skip-lines --- csvkit/utilities/csvformat.py | 2 +- docs/scripts/csvformat.rst | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/csvkit/utilities/csvformat.py b/csvkit/utilities/csvformat.py index 664462ff2..78021614e 100644 --- a/csvkit/utilities/csvformat.py +++ b/csvkit/utilities/csvformat.py @@ -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', diff --git a/docs/scripts/csvformat.rst b/docs/scripts/csvformat.rst index 4d3137a1d..75825146d 100644 --- a/docs/scripts/csvformat.rst +++ b/docs/scripts/csvformat.rst @@ -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. @@ -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