1
0
forked from ovh/pci-test

some more improvements to comments

This commit is contained in:
dmagro 2025-05-01 20:51:33 +02:00
parent 012b0bf04c
commit 259686b255
2 changed files with 3 additions and 3 deletions

View File

@ -16,10 +16,9 @@ parser.add_argument(
# Execute parsing
args = parser.parse_args()
# Verifica massimo 3 valori
# Check if arguments are more than expected
if len(args.target) > 3:
print("Error: can be used **at max 3** values from 'toto', 'tata' and 'titi'.", file=sys.stderr)
sys.exit(1)
# Tutto OK
print("You've written:", args.target)

View File

@ -1,8 +1,9 @@
import sys
import pyfiglet
# check if executed without text and print help
if len(sys.argv) < 2:
print("Usage: python script.py 'text to be converted'")
print("Usage: python c.py 'text to be converted'")
sys.exit(1)
text = " ".join(sys.argv[1:])