Skip to content

Commit

Permalink
Adds "merge" to the list of commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Mar 2, 2024
1 parent c6dab34 commit f4117dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/structurizr/cli/HelpCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HelpCommand extends AbstractCommand {
}

public void run(String... args) throws Exception {
log.info("Usage: structurizr push|pull|lock|unlock|export|validate|inspect|list|version|help [options]");
log.info("Usage: structurizr push|pull|lock|unlock|export|merge|validate|inspect|list|version|help [options]");
}

}
2 changes: 1 addition & 1 deletion src/main/java/com/structurizr/cli/MergeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void run(String... args) throws Exception {
option.setRequired(true);
options.addOption(option);

option = new Option("v", "view", true, "Key of the view to merge layout information for");
option = new Option("v", "view", true, "Key of the view to merge layout information for (optional)");
option.setRequired(false);
options.addOption(option);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ public void run(String... args) {
}
}

private void printUsageMessageAndExit(String commandName) {
private void printUsageMessageAndExit(String commandName) throws Exception {
if (!StringUtils.isNullOrEmpty(commandName)) {
log.error("Error: " + commandName + " not recognised");
}

log.error("Usage: structurizr push|pull|lock|unlock|export|validate|inspect|list|version|help [options]");
new HelpCommand().run();
System.exit(1);
}

Expand Down

0 comments on commit f4117dc

Please sign in to comment.