diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-11-08 15:45:28 -0500 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-11-08 15:45:28 -0500 |
commit | 15375ef6b9a0bf7ae2473a893816c4916d9ab7ba (patch) | |
tree | 837fdd5337f044684d9c478a3a71aa13911d4d28 | |
parent | 7ec433a45248dac9bbf5faebfa7cbf6f055ae279 (diff) | |
download | infinitytier-15375ef6b9a0bf7ae2473a893816c4916d9ab7ba.tar.gz infinitytier-15375ef6b9a0bf7ae2473a893816c4916d9ab7ba.zip |
Small fix to CLI module.
-rw-r--r-- | main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -149,6 +149,11 @@ static int main(int argc,char **argv) } } + if (!command.length()) { + printHelp(stdout,argv[0]); + return -1; + } + if (!authToken.length()) { const char *home = getenv("HOME"); if (home) { |