зеркало из https://github.com/nextcloud/desktop.git
Make returncode 0 for --version and --help
This commit is contained in:
Родитель
6fae06f1d0
Коммит
6d87bd15cd
|
@ -158,14 +158,14 @@ void help()
|
|||
std::cout << " -h Sync hidden files,do not ignore them" << std::endl;
|
||||
std::cout << " --version, -v Display version and exit" << std::endl;
|
||||
std::cout << "" << std::endl;
|
||||
exit(1);
|
||||
exit(0);
|
||||
|
||||
}
|
||||
|
||||
void showVersion() {
|
||||
const char *binaryName = APPLICATION_EXECUTABLE "cmd";
|
||||
std::cout << binaryName << " version " << qPrintable(Theme::instance()->version()) << std::endl;
|
||||
exit(1);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void parseOptions( const QStringList& app_args, CmdOptions *options )
|
||||
|
|
Загрузка…
Ссылка в новой задаче