Require name for profile init

This commit is contained in:
jld3103 2021-10-10 15:29:03 +02:00
parent 4bba3e606c
commit e6d084b513

View file

@ -434,7 +434,7 @@ def config_prompt(text: str, default: any, field_type: type = str, bold: bool =
@cmd_profile.command(name='init')
@noninteractive_flag
@noop_flag
@click.argument('name', required=False)
@click.argument('name', required=True)
def cmd_profile_init(name: str = None, non_interactive: bool = False, noop: bool = False):
"""Create or edit a profile"""
profile = {key: None for key in PROFILE_DEFAULTS.keys()}