forked from ovh/pci-test
some more improvements to comments
This commit is contained in:
parent
012b0bf04c
commit
259686b255
3
ex1/b.py
3
ex1/b.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user