Skip to content

Commit

Permalink
fix(main): fix pkg command
Browse files Browse the repository at this point in the history
  • Loading branch information
comfysage committed Feb 1, 2024
1 parent d9ee001 commit 5607f92
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(<NAME> "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!(<NAME> "Package to remove")),
)
.subcommand(
Command::new("show")
.about("Show pkg configuration")
.arg_required_else_help(true)
.arg(arg!(<NAME> "Package to show")),
),
)
.subcommand(
Expand Down

0 comments on commit 5607f92

Please sign in to comment.