summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-08 15:45:28 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-08 15:45:28 -0500
commit15375ef6b9a0bf7ae2473a893816c4916d9ab7ba (patch)
tree837fdd5337f044684d9c478a3a71aa13911d4d28
parent7ec433a45248dac9bbf5faebfa7cbf6f055ae279 (diff)
downloadinfinitytier-15375ef6b9a0bf7ae2473a893816c4916d9ab7ba.tar.gz
infinitytier-15375ef6b9a0bf7ae2473a893816c4916d9ab7ba.zip
Small fix to CLI module.
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index dce3f8c2..b2d96628 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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) {