Skip to content

Commit

Permalink
Polished
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Oct 4, 2023
1 parent d35d5a4 commit fff2a09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public static void run(String... args) {
.addSubcommand("copy", new CommandLine(new DependencyCopy(main))))
.addSubcommand("generate", new CommandLine(new CodeGenerator(main))
.addSubcommand("rest", new CommandLine(new CodeRestGenerator(main))))
.addSubcommand("sbom", new CommandLine(new SBOMGenerator(main)))
.addSubcommand("catalog", new CommandLine(new CatalogCommand(main))
.addSubcommand("component", new CommandLine(new CatalogComponent(main)))
.addSubcommand("dataformat", new CommandLine(new CatalogDataFormat(main)))
Expand All @@ -150,8 +151,7 @@ public static void run(String... args) {
.addSubcommand("version", new CommandLine(new VersionCommand(main))
.addSubcommand("get", new CommandLine(new VersionGet(main)))
.addSubcommand("set", new CommandLine(new VersionSet(main)))
.addSubcommand("list", new CommandLine(new VersionList(main))))
.addSubcommand("sbom", new CommandLine(new SBOMGenerator(main)));
.addSubcommand("list", new CommandLine(new VersionList(main))));

commandLine.getCommandSpec().versionProvider(() -> {
CamelCatalog catalog = new DefaultCamelCatalog();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import picocli.CommandLine;
import picocli.CommandLine.Command;

@Command(name = "transform", description = "Transform Camel route to XML or YAML format", sortOptions = false)
@Command(name = "transform", description = "Transform Camel routes to XML or YAML format", sortOptions = false)
public class Transform extends CamelCommand {

@CommandLine.Parameters(description = "The Camel file(s) to run. If no files specified then application.properties is used as source for which files to run.",
Expand All @@ -52,7 +52,8 @@ public class Transform extends CamelCommand {
boolean resolvePlaceholders;

@CommandLine.Option(names = { "--uri-as-parameters" },
description = "Whether to expand URIs into separated key/value parameters (only in use for YAML format)")
description = "Whether to expand URIs into separated key/value parameters (only in use for YAML format"
+ "and recommended to enable when using Apache Camel Karavan)")
boolean uriAsParameters;

@CommandLine.Option(names = { "--ignore-loading-error" },
Expand Down

0 comments on commit fff2a09

Please sign in to comment.