mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Update README.md
This commit is contained in:
parent
bc4eddc138
commit
bf3f582740
@ -84,7 +84,7 @@ Verbosity enabled
|
||||
|
||||
Here's what's happening:
|
||||
* The program is written so as to display something when --verbose is specified and display nothing when not.
|
||||
* To show that the option is actually optional, there is no error when running the program without it. Note that by using ```.default_value(false)```, if the optional argument isn’t used, it's value is automatically set to false.
|
||||
* Since the argument is actually optional, no error is thrown when running the program without ```--verbose```. Note that by using ```.default_value(false)```, if the optional argument isn’t used, it's value is automatically set to false.
|
||||
* By using ```.implicit_value(true)```, the user specifies that this option is more of a flag than something that requires a value. When the user provides the --verbose option, it's value is set to true.
|
||||
|
||||
### Combining Positional and Optional Arguments
|
||||
|
Loading…
Reference in New Issue
Block a user