Provide bash completion
This commit is contained in:
parent
160bf9929d
commit
08c2ced1d6
|
@ -24,6 +24,7 @@ include(QtGuiConfig)
|
||||||
include(QtConfig)
|
include(QtConfig)
|
||||||
include(WindowsResources)
|
include(WindowsResources)
|
||||||
include(AppTarget)
|
include(AppTarget)
|
||||||
|
include(ShellCompletion)
|
||||||
|
|
||||||
# add installs for service and config files
|
# add installs for service and config files
|
||||||
install(FILES ../resources/systemd/${META_PROJECT_NAME}.service
|
install(FILES ../resources/systemd/${META_PROJECT_NAME}.service
|
||||||
|
|
|
@ -32,7 +32,6 @@ int main(int argc, char *argv[])
|
||||||
// setup the argument parser
|
// setup the argument parser
|
||||||
ArgumentParser parser;
|
ArgumentParser parser;
|
||||||
ConfigArgs configArgs(parser);
|
ConfigArgs configArgs(parser);
|
||||||
parser.setIgnoreUnknownArguments(false);
|
|
||||||
// parse command line arguments
|
// parse command line arguments
|
||||||
try {
|
try {
|
||||||
parser.parseArgs(argc, argv);
|
parser.parseArgs(argc, argv);
|
||||||
|
|
|
@ -40,6 +40,7 @@ include(QtConfig)
|
||||||
include(WindowsResources)
|
include(WindowsResources)
|
||||||
include(WebViewProviderConfig)
|
include(WebViewProviderConfig)
|
||||||
include(AppTarget)
|
include(AppTarget)
|
||||||
|
include(ShellCompletion)
|
||||||
|
|
||||||
# create desktop file using previously defined meta data
|
# create desktop file using previously defined meta data
|
||||||
add_desktop_file()
|
add_desktop_file()
|
||||||
|
|
|
@ -31,7 +31,6 @@ int main(int argc, char *argv[])
|
||||||
SET_QT_APPLICATION_INFO;
|
SET_QT_APPLICATION_INFO;
|
||||||
QT_CONFIG_ARGUMENTS qtConfigArgs;
|
QT_CONFIG_ARGUMENTS qtConfigArgs;
|
||||||
ConfigArgs configArgs(parser);
|
ConfigArgs configArgs(parser);
|
||||||
parser.setIgnoreUnknownArguments(false);
|
|
||||||
Argument webdirArg("web-dir", '\0', "specifies the directory of the web files");
|
Argument webdirArg("web-dir", '\0', "specifies the directory of the web files");
|
||||||
webdirArg.setCombinable(true);
|
webdirArg.setCombinable(true);
|
||||||
webdirArg.setRequiredValueCount(1);
|
webdirArg.setRequiredValueCount(1);
|
||||||
|
|
Loading…
Reference in New Issue