Avoid GUI display for App listing
This commit is contained in:
parent
0802609fd8
commit
4ee36fd405
7 changed files with 46 additions and 87 deletions
|
|
@ -546,7 +546,8 @@ void ListCommandLineParser::parse(const QStringList &args)
|
|||
parser.addPositionalArgument("list", "list available apps");
|
||||
parser.addPositionalArgument("host", "Host computer name, UUID, or IP address", "<host>");
|
||||
|
||||
parser.addFlagOption("csv", "Print as CSV with additional information");
|
||||
parser.addFlagOption("csv", "Print as CSV with additional information");
|
||||
parser.addFlagOption("verbose", "Displays additional information");
|
||||
|
||||
if (!parser.parse(args)) {
|
||||
parser.showError(parser.errorText());
|
||||
|
|
@ -556,6 +557,7 @@ void ListCommandLineParser::parse(const QStringList &args)
|
|||
|
||||
|
||||
m_PrintCSV = parser.isSet("csv");
|
||||
m_Verbose = parser.isSet("verbose");
|
||||
|
||||
// This method will not return and terminates the process if --version or
|
||||
// --help is specified
|
||||
|
|
@ -578,3 +580,8 @@ bool ListCommandLineParser::isPrintCSV() const
|
|||
{
|
||||
return m_PrintCSV;
|
||||
}
|
||||
|
||||
bool ListCommandLineParser::isVerbose() const
|
||||
{
|
||||
return m_Verbose;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue