@realpython.comReal Python @realpython.com
2026-11-25 17:05 UTC
2. argparse's required=True makes a flag mandatory, but it accepts an empty string as the value. So the contacts CLI's add --name "" --email "" --phone "" saves a blank contact, and list shows an empty row. Claude Code's bug review flagged it after the happy-path tests passed.
1 picture (not shown on this phone): Python REPL session. An argparse parser gets a --name argument with required=True. Parsing the arguments --name followe…
A reply in a thread.
0 likes, 0 reposts, 1 replies
3 Next post4 More from @realpython.comBackBluesky home