Hi,

is there an possibility to use
https://docs.python.org/3/library/argparse.html#sub-commands

in the custom admin commands so I can have subcommands like

manage.py mycommand subcommand1 choice1-for-subcommand1
manage.py mycommand subcommand1 choice2-for-subcommand1
manage.py mycommand subcommand2 variable-param


Preferably an official way.

I tested an example which I found in the internet
(forgot where), it worked in python 2.7 but didn't in python 3.5
(even when using the same django 1.10 base)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/nrpnt4%24ogs%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to