mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Based on slack discussion, pass arguments from launcher to started application
https://swift-project.slack.com/archives/C04J6J76N/p1504449711000040 * utility functions in CApplication and CNetworkVatlib for cmd args * a.addVatlibOptions() in launcher * function CSwiftLauncher::startDetached to unify startup and simplify debugging
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1baf74ebf3
commit
eab22e86b0
@@ -1156,6 +1156,18 @@ namespace BlackCore
|
||||
return false;
|
||||
}
|
||||
|
||||
QStringList CApplication::inheritedArguments(bool withVatlibArgs) const
|
||||
{
|
||||
QStringList args;
|
||||
if (this->isSet(m_cmdDevelopment))
|
||||
{
|
||||
args.append("--" + m_cmdDevelopment.names().first());
|
||||
args.append("true");
|
||||
}
|
||||
if (withVatlibArgs) { args.append(CNetworkVatlib::inheritedArguments()); }
|
||||
return args;
|
||||
}
|
||||
|
||||
void CApplication::cmdLineHelpMessage()
|
||||
{
|
||||
this->m_parser.showHelp(); // terminates
|
||||
|
||||
Reference in New Issue
Block a user