The Python Oracle

Is there a way to create argument in python's argparse that returns true in case no values given

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC G Dvoks String Quartet No 12 Ame 2

--

Chapters
00:00 Question
00:59 Accepted answer (Score 8)
02:34 Answer 2 (Score 1)
03:01 Answer 3 (Score 1)
03:33 Thank you

--

Full question
https://stackoverflow.com/questions/3465...

Accepted answer links:
[nargs]: https://docs.python.org/2/library/argpar...
[const]: https://docs.python.org/3/library/argpar...
[default value]: https://docs.python.org/3/library/argpar...

Answer 2 links:
https://docs.python.org/3/library/argpar...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #argparse

#avk47