date: Make the --date option require a value
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
429e4c9f61
commit
e99ba4df36
@ -10,7 +10,7 @@ int main(int argc, char** argv)
|
|||||||
StringView date;
|
StringView date;
|
||||||
|
|
||||||
ArgumentParser parser;
|
ArgumentParser parser;
|
||||||
parser.add_value_argument(date, 'd', "date"_sv, false);
|
parser.add_value_argument(date, 'd', "date"_sv, true);
|
||||||
parser.parse(argc, argv);
|
parser.parse(argc, argv);
|
||||||
|
|
||||||
time_t now;
|
time_t now;
|
||||||
|
Loading…
Reference in New Issue
Block a user