From: Joas Schilling Date: Fri, 23 Oct 2015 13:17:29 +0000 (+0200) Subject: Make returncode 0 for --version and --help X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1395^2~13^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6d87bd15cd18da0da0bb41ee471e1b39d6c4420c;p=nextcloud-desktop.git Make returncode 0 for --version and --help --- diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp index 31d4963f5..970087801 100644 --- a/src/cmd/cmd.cpp +++ b/src/cmd/cmd.cpp @@ -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 )