techniq/flask-script — pull request #46 by dstufft (2012-12-24 07:52:08+00:00)
Title: Add Group, a simple way to group arguments

This adds a Group class which makes it possible to specify either argument groups or mutually exclusive groups (Both a part of argparse) on a class. Examples:

class Mycommand(Command):

option_list = [
Option("--foo),
Group(
Option("--bar"),
Option("--wat"),
title="My Arguments",
description="a Description of my arguments!",
),
Group(
Option("--type-one"),
Option("--type-two"),
exclusive=True,
),
]