9ronoob

Results 2 comments of 9ronoob

I was also trying to implement the same functionality. For example ```py import click def get_name(ctx, param, value): if not value and not click.get_text_stream('stdin').isatty(): return click.get_text_stream('stdin').read().strip() else: return value @click.command()...

I have gone through another approach. Now writing a code like this ```py import click @click.command() @click.argument('name', required=True) @click.option('--m', required=True) def say_hello(name, m): click.confirm('Do you want to continue?', abort=True, default=True)...