@@ -30,7 +30,7 @@ using std::string_view;
3030 *
3131 * @return constexpr string_view The arg string as required for @see getopt_long
3232 */
33- constexpr string_view getAppArgs () { return R"( icsandhvS :)" ; }
33+ constexpr string_view getAppArgs () { return R"( icsandhtvS:xDC :)" ; }
3434
3535/* *
3636 * @brief Gets the application's command-line options for @see getopt_long.
@@ -44,9 +44,14 @@ const option* getAppOptions() {
4444 { " stdin" , no_argument, nullptr , ' s' },
4545 { " abuse-ipdb" , no_argument, nullptr , ' a' },
4646 { " detailed" , no_argument, nullptr , ' d' },
47+ { " strict" , no_argument, nullptr , ' t' },
48+ { " cache-file" , required_argument, nullptr , ' C' },
4749 { " help" , no_argument, nullptr , ' h' },
4850 { " syslog" , required_argument, nullptr , ' S' },
4951 { " version" , no_argument, nullptr , ' v' },
52+ { " sort" , no_argument, nullptr , ' x' },
53+ { " no-ad" , no_argument, nullptr , ' n' },
54+ { " dns-lookup" , no_argument, nullptr , ' D' },
5055 { nullptr , no_argument, nullptr , 0 }
5156 };
5257
@@ -77,14 +82,18 @@ inline string getAppHelpText(const string_view& binName = getProjectNa
7782 --abuse-ipdb, -a Enable AbuseIPDB-compatible CSV output
7883 --no-ad, -n No advertising please!
7984 --detailed, -d Provide detailed information
85+ --strict, -t Skip IPs whose cached stats haven't changed
8086 --help, -h Show this text and exit
8187 --version, -v Display version information and exit
88+ --sort, -x Sort IP statistics
89+ --dns-lookup, -D Perform DNS lookups on IP addresses
8290
8391Arguments:
8492 --syslog [f], -S[f] Override syslog/endlessh log location
93+ --cache-file[f],-C[f] Override persistent cache file location
8594)" ;
8695
87- return fmt::format (HELP_TEXT_FMT, binName, getApplicationVersion (), getProjectDescription ());
96+ return fmt::format (fmt::runtime ( HELP_TEXT_FMT) , binName, getApplicationVersion (), getProjectDescription ());
8897}
8998
9099/* *
0 commit comments