diff --git a/src/main.rs b/src/main.rs index b8350d5..6290206 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,20 +39,26 @@ fn get_commands() -> Command { .about("Manage pkg configurations") .subcommand_required(true) .arg_required_else_help(true) - .subcommand( - Command::new("show") - .about("Show pkg configuration") - .arg_required_else_help(true), - ) .subcommand( Command::new("add") .about("Add pkg configuration") - .arg_required_else_help(true), + .arg_required_else_help(true) + .args([ + arg!( "Package to add"), + arg!([URL] "Package url"), + ]), ) .subcommand( Command::new("remove") .about("Remove pkg configuration") - .arg_required_else_help(true), + .arg_required_else_help(true) + .arg(arg!( "Package to remove")), + ) + .subcommand( + Command::new("show") + .about("Show pkg configuration") + .arg_required_else_help(true) + .arg(arg!( "Package to show")), ), ) .subcommand(