An argparse namespace is the dictionary-like object available through a Django management command’s options parameter. It holds positional arguments and flags passed on the command line. After add_arguments() defines --last_name, for example, options["last_name"] contains the supplied value, or None when the flag was omitted. section 9.3
Filtering musicians
Running python manage.py musicians --last_name Loblaw places the flag’s value in options["last_name"]. The command can then pass that value into a database filter; without the flag, the value is None. section 9.3
