From: Arvin Schnell Date: Mon, 26 Feb 2024 10:38:59 +0000 (+0100) Subject: - use table for printing command line options help X-Git-Tag: v0.11.0~42^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F875%2Fhead;p=thirdparty%2Fsnapper.git - use table for printing command line options help --- diff --git a/client/GlobalOptions.cc b/client/GlobalOptions.cc index 9c8d5e00..0aa42f16 100644 --- a/client/GlobalOptions.cc +++ b/client/GlobalOptions.cc @@ -21,6 +21,7 @@ #include +#include "utils/help.h" #include "misc.h" #include "client/GlobalOptions.h" #include "client/utils/text.h" @@ -34,27 +35,30 @@ namespace snapper using namespace std; - string - GlobalOptions::help_text() + void + GlobalOptions::help_global_options() { - return string(_(" Global options:")) + '\n' - + _("\t--quiet, -q\t\t\tSuppress normal output.") + '\n' - + _("\t--verbose, -v\t\t\tIncrease verbosity.") + '\n' - + _("\t--debug\t\t\t\tTurn on debugging.") + '\n' - + _("\t--utc\t\t\t\tDisplay dates and times in UTC.") + '\n' - + _("\t--iso\t\t\t\tDisplay dates and times in ISO format.") + '\n' - + _("\t--table-style, -t