[Pkg-owncloud-commits] [owncloud-client] 136/484: Make returncode 0 for --version and --help
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 6d87bd15cd18da0da0bb41ee471e1b39d6c4420c
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Fri Oct 23 15:17:29 2015 +0200
Make returncode 0 for --version and --help
---
src/cmd/cmd.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp
index 31d4963..9700878 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 )
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list