#include <qmmpui/commandlinemanager.h>
|
| static QString | executeCommand (const QString &name, const QStringList &args, const QString ¤tWorkingDir) |
| |
| 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, |
|
|
const QString & | currentWorkingDir ) |
|
static |
Executes command opt_str.
- Parameters
-
| name | Command line option name. |
| args | Command arguments. |
| currentWorkingDir | Current working directory. |
- 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: