Skip to content

Commit 0fdc855

Browse files
committed
Amend/fix output for 'add2values' when function is not used correctly
1 parent 707cc70 commit 0fdc855

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sources/add2vals.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616

1717
if argnumbers != 2 :
1818
print("")
19-
print("Usage: add X Y, where X and Y are individual values.")
20-
print(" If uncompiled, usage is 'python add2vals.py X Y'.")
21-
print(" (You entered " + str(argnumbers) + " value/s.)")
19+
print("You entered " + str(argnumbers) + " value/s.")
20+
print("")
21+
print("Usage: 'add2vals X Y' where X and Y are individual values.")
22+
print(" If add2vals is not in your path, usage is './add2vals X Y'.")
23+
print(" If unbundled, usage is 'python add2vals.py X Y'.")
2224
print("")
2325
sys.exit(1)

0 commit comments

Comments
 (0)