aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/index.js b/bin/index.js
index f4167db..16e0445 100644
--- a/bin/index.js
+++ b/bin/index.js
@@ -11,6 +11,6 @@ const args = yargs.scriptName("calculator")
.strict()
.argv
-if (args.info || Object.keys(args).length < 3) {
+if (args.info || Object.keys(args).length < 3 && !args._.length) {
infoMessage.getIntroductoryMessage();
}