Changed short option for --span from -s to -S.

This commit is contained in:
tastytea 2019-05-17 00:04:24 +02:00
parent 49c89a0340
commit d4314c3f1c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -49,7 +49,7 @@ const options parse_options(const int argc, const char *argv[])
op.add<popl::Value<string>>
("f", "file", "Save output to file.", "", &file);
op.add<popl::Value<string>>
("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<popl::Switch>
("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);
}