Re: Improving usefulness of management command help output via reordering options

2018-04-06 Thread Adam Johnson
+1 Seems sensible to me too! Maybe the common arguments can even be put under a header like 'common arguments', if argparse allows that. On 6 April 2018 at 07:31, Carlton Gibson wrote: > Hi David. > > Your suggestion seems sensible, good even. (To me at least. 🙂) > > If you'd be happy to do the

Re: Improving usefulness of management command help output via reordering options

2018-04-05 Thread Carlton Gibson
Hi David. Your suggestion seems sensible, good even. (To me at least. 🙂) If you'd be happy to do the work for it then a Trac ticket + PR would be the way to go. (Assuming there are no objections.) Kind Regards, Carlton On Friday, 6 April 2018 01:24:12 UTC+2, David Foster wrote: > > Curre

Improving usefulness of management command help output via reordering options

2018-04-05 Thread David Foster
Currently if you run a custom management command with --help, you will get output that looks like: $ python3 manage.py import_layout_calendar --help usage: manage.py import_layout_calendar [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]