summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-09-12 22:54:15 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-09-19 21:38:01 +0000
commit78a4345acc5abc986c172cbafa152bb740bbcb19 (patch)
tree1dc7c571770856135cd4b2a6cbcbaf13795ed5b5
parentImprovements from Nathanl (diff)
downloadinkscape-78a4345acc5abc986c172cbafa152bb740bbcb19.tar.gz
inkscape-78a4345acc5abc986c172cbafa152bb740bbcb19.zip
Inkview: Add summary and parameter string to help output
-rw-r--r--src/inkview-application.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inkview-application.cpp b/src/inkview-application.cpp
index fbec132a1..c38c26fad 100644
--- a/src/inkview-application.cpp
+++ b/src/inkview-application.cpp
@@ -62,10 +62,15 @@ InkviewApplication::InkviewApplication()
Glib::set_application_name(N_("Inkview - An SVG File Viewer")); // After gettext() init.
+ // Additional informational strings for --help output
+ // TODO: Claims to be translated automatically, but seems broken, so pass already translated strings
+ set_option_context_parameter_string(_("path1 [path2 pathN]]"));
+ set_option_context_summary(_("Open one or more SVG files (or folders containing SVG files) for viewing."));
+
// Will automatically handle character conversions.
// Note: OPTION_TYPE_FILENAME => std::string, OPTION_TYPE_STRING => Glib::ustring.
- add_main_option_entry(OPTION_TYPE_BOOL, "version", 'V', N_("Print: Inkview version."), "");
+ add_main_option_entry(OPTION_TYPE_BOOL, "version", 'V', N_("Print Inkview version"), "");
add_main_option_entry(OPTION_TYPE_BOOL, "fullscreen", 'f', N_("Launch in fullscreen mode"), "");
add_main_option_entry(OPTION_TYPE_BOOL, "recursive", 'r', N_("Search folders recursively"), "");
add_main_option_entry(OPTION_TYPE_INT, "timer", 't', N_("Change image every NUMBER seconds"), N_("NUMBER"));