From 1e92d603a889e7f7181860545e72680460771dc3 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 26 May 2020 14:16:00 +0200 Subject: [PATCH] core/main: Clean up option handling - Add a missing space in the usage string - Drop short option "p", which is unused --- src/core/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index a091d97..29fe657 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -24,7 +24,7 @@ static int xdpw_usage(FILE* stream, int rc) { " QUIET, ERROR, WARN, INFO, DEBUG, TRACE\n" " -o, --output= Select output to capture.\n" " metadata (performs no conversion).\n" - " -h,--help Get help (this text).\n" + " -h, --help Get help (this text).\n" "\n"; fprintf(stream, "%s", usage); @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) { const char* output_name = NULL; enum LOGLEVEL loglevel = ERROR; - static const char* shortopts = "l:o:p:h"; + static const char* shortopts = "l:o:h"; static const struct option longopts[] = { { "loglevel", required_argument, NULL, 'l' }, { "output", required_argument, NULL, 'o' },