DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python argparse ignore unrecognized arguments
# replace
args
=
parser
.
parse_args
(
)
# with
args
,
unknown
=
parser
.
parse_known_args
(
)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#argparse
#ignore
#unrecognized
#arguments
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit