summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2024-05-14 09:20:49 -0400
committerJustin Luth <jluth@mail.com>2024-05-20 15:42:36 +0200
commit3d4a3b30aea603b98da447ec6587b5d3eb20da66 (patch)
treebcac9efedd3a7f27981eb813e11d2a05094a4eab /desktop
parent382801ee5368a4c3d59931450dec0d2d9f369285 (diff)
tdf#69192 fix cmdlinehelp: --show[=slide_number], etc.
I had skimmed the help file earlier, and concluded that { } are used elsewhere to indicate optional paramaters. However, there is --quickstart[=no], and -env:<VAR>[=<VALUE>] which exactly match my optional addition. Thanks Stéphane for pointing this out. Also included are some other changes we made to clarify the help wording in general, so the documentation and the cmdline help are in sync. We dropped Files other than Impress documents are opened in default mode, regardless of previous mode. because: -from an initial reading it doesn't convey any useful meaning. -searching for other uses of "mode" in the file suggests it means that prior --print/--convert-to/--view modes no longer apply. This override of prior modes is true for all modes, but only this argument tries to spell this out. -it seems rather inconceivable that any user would attempt to mix --show with any other arguments or more than one file. Change-Id: I191e572506cf2b39ed6c9ff4ebaf66f258a176a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167633 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/cmdlinehelp.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/desktop/source/app/cmdlinehelp.cxx b/desktop/source/app/cmdlinehelp.cxx
index 10b3e5c48cbb..7fb0b3d48a1e 100644
--- a/desktop/source/app/cmdlinehelp.cxx
+++ b/desktop/source/app/cmdlinehelp.cxx
@@ -145,11 +145,10 @@ namespace desktop
" not appear. If the file name contains spaces, then it \n"
" must be enclosed in quotation marks. \n"
" --view Opens following files in viewer mode (read-only). \n"
- " --show{=slide#} Opens and starts the following presentation documents \n"
- " of each immediately. Files are closed after the showing.\n"
- " If a slide # is provided, they start at that slide. \n"
- " Files other than Impress documents are opened in \n"
- " default mode , regardless of previous mode. \n"
+ " --show[=slide_number] Opens and starts the slideshow of the following \n"
+ " presentation documents immediately. \n"
+ " Files are closed after the showing. \n"
+ " If a slide_number is provided, they start at that slide.\n"
" --convert-to OutputFileExtension[:OutputFilterName] \\ \n"
" [--outdir output_dir] [--convert-images-to] \n"
" Batch convert files (implies --headless). If --outdir \n"