From 6c7a4d66856ba020b46b610f9aa0260affb309f5 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 13 May 2019 02:32:27 +0200 Subject: [PATCH] Enhanced help message. --- src/parse_options.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/parse_options.cpp b/src/parse_options.cpp index 2825d92..7df6c7a 100644 --- a/src/parse_options.cpp +++ b/src/parse_options.cpp @@ -72,7 +72,9 @@ const options parse_options(const int argc, const char *argv[]) if (option_help->is_set()) { - cout << "Usage: " << argv[0] << " [-t tags] URL\n"; + cout << "Usage: " << argv[0] << " [-t tags] URL\n" + << " " << argv[0] + << " -e format [-f file] [-s start,end]\n"; cout << op; return options(0); } @@ -134,7 +136,7 @@ const options parse_options(const int argc, const char *argv[]) else { cerr << "Error: Time span must be in format: " - "YYYY-MM-DD,YYYY-MM-DD\n"; + "YYYY-MM-DD,YYYY-MM-DD.\n"; return options(1); } }