date: Make the --date option require a value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-03-30 21:39:42 +02:00
parent 429e4c9f61
commit e99ba4df36
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -10,7 +10,7 @@ int main(int argc, char** argv)
StringView date;
ArgumentParser parser;
parser.add_value_argument(date, 'd', "date"_sv, false);
parser.add_value_argument(date, 'd', "date"_sv, true);
parser.parse(argc, argv);
time_t now;