From 5cb10becce2aa2b58eadb0ef90746a4b878ff134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Gro=C3=9F?= Date: Thu, 3 Oct 2024 22:58:34 +0200 Subject: [PATCH] Use consistent phrasing in help --- doc/man/man1/blobdrop.1 | 2 +- src/getopts.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/man/man1/blobdrop.1 b/doc/man/man1/blobdrop.1 index a489a81..d7c4577 100644 --- a/doc/man/man1/blobdrop.1 +++ b/doc/man/man1/blobdrop.1 @@ -51,7 +51,7 @@ frontend to intercept another drag and drop operation. Once an element is droppe option determines the frontend of the outgoing converted drag and drop event. .TP .B \-I, \-\-icon-only -Show only the thumbnail icons in windows. This option has no effect if a frontend other than the +Show only thumbnail icons. This option has no effect if a frontend other than the .B gui frontend is active. .TP diff --git a/src/getopts.cpp b/src/getopts.cpp index 1648d2c..be15669 100644 --- a/src/getopts.cpp +++ b/src/getopts.cpp @@ -33,7 +33,7 @@ bool parse(const QStringList &args) { "Spawn window at the mouse cursor."); QCommandLineOption frontend_opt(QStringList() << "f" << "frontend", - "Selects the frontend. Must be one of:" + QString::fromStdString(frontends_descr) + " (auto is default)", + "Selects the frontend. Must be one of:" + QString::fromStdString(frontends_descr) + " (default auto).", "frontend"); QCommandLineOption intercept_opt(QStringList() << "i" << "intercept", @@ -56,14 +56,14 @@ bool parse(const QStringList &args) { "Enable ssh remote transparency."); QCommandLineOption thumbnailsize_opt(QStringList() << "s" << "thumb-size", - "Set thumbnail size (default 64)", + "Set thumbnail size (default 64).", "size"); QCommandLineOption ontop_opt(QStringList() << "t" << "ontop", "Keep the window on top of other windows."); QCommandLineOption auto_quit_opt(QStringList() << "x" << "auto-quit", - "The amount of drags after which the program should automatically close. Must be one of:" + QString::fromStdString(auto_quit_descr) + " (all is default)", + "The amount of drags after which the program should automatically close. Must be one of:" + QString::fromStdString(auto_quit_descr) + " (default all).", "behaviour"); p.addOptions({frameless_opt, cursor_opt, frontend_opt, intercept_opt, icononly_opt, keep_opt, persistent_opt, prefix_opt, remote_opt, thumbnailsize_opt, ontop_opt, auto_quit_opt});