diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-07-02 23:25:59 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-07-03 19:49:06 +0000 |
| commit | ee0a1d2c5fdb7ce1559a1b06a7056f5ba9e35544 (patch) | |
| tree | 1cc7ddd4486dde7861ae043ac28e99fc03ec77df | |
| parent | Refine option grouping (diff) | |
| download | inkscape-ee0a1d2c5fdb7ce1559a1b06a7056f5ba9e35544.tar.gz inkscape-ee0a1d2c5fdb7ce1559a1b06a7056f5ba9e35544.zip | |
Add additional informational strings for --help output
| -rw-r--r-- | src/inkscape-application.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/inkscape-application.cpp b/src/inkscape-application.cpp index 8e1edd419..355f4ca20 100644 --- a/src/inkscape-application.cpp +++ b/src/inkscape-application.cpp @@ -521,6 +521,17 @@ ConcreteInkscapeApplication<T>::ConcreteInkscapeApplication() // Will automatically handle character conversions. // Note: OPTION_TYPE_FILENAME => std::string, OPTION_TYPE_STRING => Glib::ustring. + // Additional informational strings for --help output + // TODO: Claims to be translated automatically, but seems broken, so pass already translated strings + this->set_option_context_parameter_string(_("file1 [file2 [fileN]]")); + this->set_option_context_summary(_("Process (or open) one or more files.")); + this->set_option_context_description(Glib::ustring("\n") + _("Examples:") + '\n' + + " " + Glib::ustring::compose(_("Export input SVG (%1) to PDF (%2) format:"), "in.svg", "out.pdf") + '\n' + + '\t' + "inkscape --export-file=out.pdf in.svg\n" + + " " + Glib::ustring::compose(_("Export input files (%1) to PNG format keeping original name (%2):"), "1n1.svg/in2.svg", "in1.png/in2.png") + '\n' + + '\t' + "inkscape --export-type=png in1.svg in2.svg\n" + + " " + Glib::ustring::compose(_("See %1 and %2 for more details."), "'man inkscape'", "http://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line")); + // General this->add_main_option_entry(T::OPTION_TYPE_BOOL, "version", 'V', N_("Print Inkscape version."), ""); this->add_main_option_entry(T::OPTION_TYPE_BOOL, "extension-directory", 'x', N_("Print system extension directory."), ""); |
