@@ -16,7 +16,7 @@ Check it:
1616$ python main.py --help
1717
1818// Notice the extra range information in the help text for --age and --score
19- Usage: main.py [OPTIONS] ID
19+ Usage: main.py [OPTIONS] {ID}
2020
2121Arguments:
2222 ID [required]
@@ -36,23 +36,23 @@ ID is 5
3636// Pass an invalid ID
3737$ python main.py 1002
3838
39- Usage: main.py [OPTIONS] ID
39+ Usage: main.py [OPTIONS] {ID}
4040Try "main.py --help" for help.
4141
4242Error: Invalid value for 'ID': 1002 is not in the range 0<=x<=1000.
4343
4444// Pass an invalid age
4545$ python main.py 5 --age 15
4646
47- Usage: main.py [OPTIONS] ID
47+ Usage: main.py [OPTIONS] {ID}
4848Try "main.py --help" for help.
4949
5050Error: Invalid value for '--age': 15 is not in the range x>=18.
5151
5252// Pass an invalid score
5353$ python main.py 5 --age 20 --score 100.5
5454
55- Usage: main.py [OPTIONS] ID
55+ Usage: main.py [OPTIONS] {ID}
5656Try "main.py --help" for help.
5757
5858Error: Invalid value for '--score': 100.5 is not in the range x<=100.
@@ -83,7 +83,7 @@ And then, when you pass data that is out of the valid range, it will be "clamped
8383// ID doesn't have clamp, so it shows an error
8484$ python main.py 1002
8585
86- Usage: main.py [OPTIONS] ID
86+ Usage: main.py [OPTIONS] {ID}
8787Try "main.py --help" for help.
8888
8989Error: Invalid value for 'ID': 1002 is not in the range 0<=x<=1000.
0 commit comments