Il 25/11/2015 02:52, Jonas Obrist ha scritto:
> Argparse supports subcommands (which are pretty neat), as well as
> positional (named) arguments, so no need to switch to --from-lang etc.
> Usually -/-- arguments are considered optional, but in your example,
> both from lang and to lang are required, so keeping it `manage.py cms
> copy-lang it en` makes more sense to me and is fully supported by argparse.
>
I'll look into subcommands implementation in argparse, thanks for
pointing me to it.
My itch is about replacing current sparse implementation of the commands
with a more uniform one and one which provides sensible help text etc,
the implementation details are left to the discussion :)
I'll post updates here when I have a first draft ready.
> <mailto:
django-cms-developers%2Bunsu...@googlegroups.com>
> --- You received this message because you are subscribed to the
> Google Groups "django CMS developers" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
django-cms-devel...@googlegroups.com
> <mailto:
django-cms-developers%2Bunsu...@googlegroups.com>.
> <mailto:
django-cms-devel...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/django-cms-developers/CAMS%3DEL11UfTvhBQf-C83zgWjLgcm5Nret07ex4_1Rr2kqJ0OtQ%40mail.gmail.com
> <
https://groups.google.com/d/msgid/django-cms-developers/CAMS%3DEL11UfTvhBQf-C83zgWjLgcm5Nret07ex4_1Rr2kqJ0OtQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
Cheers
Iacopo Spalletti