From 0fdc855bdccc7158731d516fb93128b7da41dc77 Mon Sep 17 00:00:00 2001 From: Giles Gaskell Date: Wed, 6 Dec 2017 14:57:56 +1100 Subject: [PATCH] Amend/fix output for 'add2values' when function is not used correctly --- sources/add2vals.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/add2vals.py b/sources/add2vals.py index c6bae7f..d671e38 100644 --- a/sources/add2vals.py +++ b/sources/add2vals.py @@ -16,8 +16,10 @@ if argnumbers == 2 : if argnumbers != 2 : print("") - print("Usage: add X Y, where X and Y are individual values.") - print(" If uncompiled, usage is 'python add2vals.py X Y'.") - print(" (You entered " + str(argnumbers) + " value/s.)") + print("You entered " + str(argnumbers) + " value/s.") + print("") + print("Usage: 'add2vals X Y' where X and Y are individual values.") + print(" If add2vals is not in your path, usage is './add2vals X Y'.") + print(" If unbundled, usage is 'python add2vals.py X Y'.") print("") sys.exit(1)