import click @cli.command() @click.argument(\"namespace\", nargs=1) def process(namespace): ..... @cli.command() def run(): for namespace in KEYS.iterkeys():