0.3.2版本 #4

Merged
youmetme merged 6 commits from dev into main 2025-09-30 14:02:58 +08:00
2 changed files with 33 additions and 12 deletions
Showing only changes of commit 0a7179380a - Show all commits

View File

@@ -17,12 +17,23 @@ ArgParse *initArgParse() {
NULL,
false,
ArgParseNOVALUE);
argParseAddGlobalArg(
argparse, "-q", "--quiet", "Quiet mode", NULL, NULL, false, ArgParseNOVALUE);
argParseAddGlobalArg(argparse,
"-q",
"--quiet",
"Quiet mode",
NULL,
NULL,
false,
ArgParseNOVALUE);
// add arguments
command = argParseAddCommand(
argparse, "install", "Install the package", NULL, NULL, NULL, ArgParseNOVALUE);
command = argParseAddCommand(argparse,
"install",
"Install the package",
NULL,
NULL,
NULL,
ArgParseNOVALUE);
argParseAddArg(command,
"-i",
"--index",
@@ -48,8 +59,13 @@ ArgParse *initArgParse() {
false,
ArgParseMULTIVALUE);
sub_command = argParseAddSubCommand(
command, "tools", "Install tools", NULL, NULL, NULL, ArgParseMULTIVALUE);
sub_command = argParseAddSubCommand(command,
"tools",
"Install tools",
NULL,
NULL,
NULL,
ArgParseMULTIVALUE);
argParseAddArg(sub_command,
"-t",
@@ -59,8 +75,13 @@ ArgParse *initArgParse() {
NULL,
true,
ArgParseMULTIVALUE);
sub_command = argParseAddSubCommand(
command, "tools_sub", "Install tools", NULL, NULL, NULL, ArgParseMULTIVALUE);
sub_command = argParseAddSubCommand(command,
"tools_sub",
"Install tools",
NULL,
NULL,
NULL,
ArgParseMULTIVALUE);
argParseAddArg(sub_command,
"-s",