Skip to content

Commit

Permalink
Also handle --help/-h
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Perl authored and Bernd Wachter committed Aug 20, 2014
1 parent ccaa3eb commit 3174910
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ssuks/ssuks.cpp
Expand Up @@ -28,7 +28,10 @@ void SsuKs::run(){
QTextStream qerr(stderr);
QHash<QString, QString> repoParameters;

if (arguments.count() == 1 && arguments.at(0) == "help"){
if (arguments.count() == 1 &&
(arguments.at(0) == "help" ||
arguments.at(0) == "--help" ||
arguments.at(0) == "-h")) {
usage();
return;
}
Expand Down

0 comments on commit 3174910

Please sign in to comment.