I am new to using click package if I give one to two commands and run it its not giving output, please look at my code and suggest what I can do.
import click
@click.group()
@click.option('--removedigits',default=False,help='remove digits from input')
@click.argument('name')
def cli(removedigits,name):
'''supports some string commands from command line'''
if(removedigits):
output=[]
for ch in name:
if not ch.isdigit():
output.append(ch)
print(''.join(output))
@cli.command()
def concat():
'''concatnates passed in strings with delimiter'''
pass
if I enter the command as --removedigits concat -d, one1 two2
it should produce output as one, two
Can anyone explain how should I proceed?