From d4314c3f1c806267a4c6531b145bcd9c2bb268eb Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 17 May 2019 00:04:24 +0200 Subject: [PATCH] Changed short option for --span from -s to -S. --- remwharead.1.adoc | 2 +- src/parse_options.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/remwharead.1.adoc b/remwharead.1.adoc index 313c891..73e659a 100644 --- a/remwharead.1.adoc +++ b/remwharead.1.adoc @@ -34,7 +34,7 @@ Export to _format_. Possible values are _csv_ and _asciidoc_. See _FORMATS_. *-f* _file_, *--file* _file_:: Save output to _file_. Default is stdout. -*-s* _start_,_end_, *--span* _start_,_end_:: +*-S* _start_,_end_, *--span* _start_,_end_:: Only export entries between and including _start_ and _end_. _start_ and _end_ are date and time representations according to ISO 8601 (YYYY-MM-DDThh:mm:ss). Time zones are ignored. diff --git a/src/parse_options.cpp b/src/parse_options.cpp index 2665b74..3390f6e 100644 --- a/src/parse_options.cpp +++ b/src/parse_options.cpp @@ -49,7 +49,7 @@ const options parse_options(const int argc, const char *argv[]) op.add> ("f", "file", "Save output to file.", "", &file); op.add> - ("s", "span", "Only export entries between YYYY-MM-DD,YYYY-MM-DD.", + ("S", "span", "Only export entries between YYYY-MM-DD,YYYY-MM-DD.", "", &span); auto option_help = op.add ("h", "help", "Show this help message."); @@ -61,7 +61,7 @@ const options parse_options(const int argc, const char *argv[]) { cout << "Usage: " << argv[0] << " [-t tags] URI\n" << " " << argv[0] - << " -e format [-f file] [-s start,end]\n"; + << " -e format [-f file] [-S start,end]\n"; cout << op; return options(0); }