Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import click
@click.group()
def pew():
pass
mkvenv_command = lambda f: pew.command()(
click.option('--python', '-p', default='python')(
click.option('-i', multiple=True)(f)))
@mkvenv_command
@click.argument('envname')
def new(envname, python, i):
print(envname, python, i)
@mkvenv_command
def mktmpenv(python, i):
print(python, i)
if __name__ == '__main__':
pew()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.