#include <commandlinemanager.h>
|
| static QString | executeCommand (const QString &name, const QStringList &args=QStringList()) |
| |
| static bool | hasOption (const QString &opt_str, CommandLineHandler::OptionFlags *flags=nullptr) |
| |
| static void | printUsage () |
| |
| static QString | formatHelpString (const QString &line) |
| |
Helper class used for handle command line plugins.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ executeCommand()
| static QString executeCommand |
( |
const QString & |
name, |
|
|
const QStringList & |
args = QStringList() |
|
) |
| |
|
static |
Executes command opt_str.
- Parameters
-
| name | Command line option name. |
| args | Command arguments. |
- Returns
- Command output result.
◆ formatHelpString()
| static QString formatHelpString |
( |
const QString & |
line | ) |
|
|
static |
Prepares help string for output.
- Parameters
-
| line | Specially formatted help string. Example: "--command||description". |
◆ hasOption()
| static bool hasOption |
( |
const QString & |
opt_str, |
|
|
CommandLineHandler::OptionFlags * |
flags = nullptr |
|
) |
| |
|
static |
Return true if command opt_str is supported, otherwise returns false.
◆ printUsage()
| static void printUsage |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: