Search
 
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
Name
8+2 =