From e6d084b513d185c9f2001de1290a473e6266c44e Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 10 Oct 2021 15:29:03 +0200 Subject: [PATCH] Require name for profile init --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index d17bb76..58f0cdc 100644 --- a/config.py +++ b/config.py @@ -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()}