On Tue, Apr 20, 2021 at 4:18 AM Bill Campbell <b...@celestial.net> wrote: > > On Mon, Apr 19, 2021, Loris Bennett wrote: > >Hi, > > > >I have various small programs which tend to have an interface like the > >following example: > > > > usage: grocli [-h] [-o {check,add,delete}] [-u USERS [USERS ...]] [-g > > GROUP] > > I would do this with the action is first argument. > > Usage: grocli check|add|delete [-u USERS ...] >
Which aligns well with a concept of subcommands (or, in argparse terms, subparsers). ChrisA -- https://mail.python.org/mailman/listinfo/python-list