diff --git a/src/main.cpp b/src/main.cpp index d1a3c81..0fd0c63 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include #include + #include "CLI11.hpp" #include "../include/distime.h" @@ -17,11 +18,17 @@ int main(int argc, char **argv) { app.usage("USAGE: distime [OPTIONS]"); char timeFormat {}; - app.add_option("-f, --format", timeFormat, "Dictates which format to output as") ->multi_option_policy (CLI::MultiOptionPolicy::Throw) ->default_val('f'); + auto formatHelp { [] () { + std::cout + << "" + } }; + + app.add_flag_callback("-fh, --format-help", , "Help with formats"); + CLI11_PARSE(app, argc, argv); validateTimeFormatSelection(timeFormat);