argparse namespace clashes

Robin Becker robin at reportlab.com
Wed Feb 27 11:24:47 EST 2019


After converting a previously working optparse I found that I should not be using 'args' as a destination as it seemed to break 
django 1.11 management command execution.

I changed both the flag name '--args' to '--task-args' and the destination 'args' to 'task-args' and that seemed to fix things.

Is there a recommendation anywhere for names and detinations to avoid?
-- 
Robin Becker



More information about the Python-list mailing list