Skip to content

Instantly share code, notes, and snippets.

@lidi
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lidi/b946cde1e89bd89a04e9 to your computer and use it in GitHub Desktop.
Save lidi/b946cde1e89bd89a04e9 to your computer and use it in GitHub Desktop.
click prompting success
# This works as expected:
# Prompting can be controlled with prompt_test
prompt_test = True # Works with correctly with both True or False
@click.command()
@click.option('--name', prompt=prompt_test, required=True)
def cli(name):
print "test %s" % name
if __name__ == '__main__':
cli()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment