From ec1fdf267fea6036d7c7bd475c33c9185ad70275 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 2 Aug 2023 11:40:11 +0200 Subject: [PATCH] feat: withname and path as proper variables Signed-off-by: kjuulh --- cuddle_cli/src/cli/subcommands/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuddle_cli/src/cli/subcommands/init.rs b/cuddle_cli/src/cli/subcommands/init.rs index b2bbb67..aacc9ec 100644 --- a/cuddle_cli/src/cli/subcommands/init.rs +++ b/cuddle_cli/src/cli/subcommands/init.rs @@ -20,8 +20,8 @@ pub fn build_command(root_cmd: Command, _cli: CuddleCli) -> Command { let execute_cmd = Command::new("init") .about("init bootstraps a repository from a template") .arg(repo_url) - .arg(clap::Arg::new("name")) - .arg(clap::Arg::new("path")) + .arg(clap::Arg::new("name").long("name")) + .arg(clap::Arg::new("path").long("path")) .arg(clap::Arg::new("value").short('v').long("value")); root_cmd.subcommand(execute_cmd)