Skip to content

Commit b9b3c49

Browse files
committed
Show usage in a few more places so that users are not lost
1 parent 2201d7e commit b9b3c49

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

cli/src/main/java/ai/wanaku/cli/main/CliMain.java

+2
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ public void run() {
3535
if (versionRequested) {
3636
System.out.println("Wanaku CLI version " + VersionHelper.VERSION);
3737
}
38+
39+
CommandLine.usage(this, System.out);
3840
}
3941
}

cli/src/main/java/ai/wanaku/cli/main/commands/resources/Resources.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ public class Resources extends BaseCommand {
99

1010
@Override
1111
public void run() {
12-
12+
CommandLine.usage(this, System.out);
1313
}
1414
}

cli/src/main/java/ai/wanaku/cli/main/commands/targets/Targets.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
public class Targets extends BaseCommand {
1111
@Override
1212
public void run() {
13-
13+
CommandLine.usage(this, System.out);
1414
}
1515
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
package ai.wanaku.cli.main.commands.tools;
22

3+
import ai.wanaku.cli.main.commands.BaseCommand;
34
import picocli.CommandLine;
45

56
@CommandLine.Command(name = "tools",
67
description = "Manage tools", subcommands = { ToolsAdd.class, ToolsRemove.class, ToolsList.class, ToolsImport.class })
7-
public class Tools {
8+
public class Tools extends BaseCommand {
9+
@Override
10+
public void run() {
11+
CommandLine.usage(this, System.out);
12+
}
813
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
package ai.wanaku.cli.main.commands.toolset;
22

3+
import ai.wanaku.cli.main.commands.BaseCommand;
34
import picocli.CommandLine;
45

56
@CommandLine.Command(name = "toolset",
67
description = "Manage toolsets", subcommands = { ToolSetAdd.class})
7-
public class ToolSet {
8+
public class ToolSet extends BaseCommand {
9+
@Override
10+
public void run() {
11+
CommandLine.usage(this, System.out);
12+
}
813
}

0 commit comments

Comments
 (0)