From 6cf38c4deb249cf197a6bd4297e12cb2e13f522d Mon Sep 17 00:00:00 2001 From: Kateryna Oblakevych Date: Wed, 1 Nov 2023 02:08:31 +0200 Subject: [PATCH] option order --- .../commands/picocli/GenerateSubcommand.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/crowdin/cli/commands/picocli/GenerateSubcommand.java b/src/main/java/com/crowdin/cli/commands/picocli/GenerateSubcommand.java index 532ea016..24653b9a 100644 --- a/src/main/java/com/crowdin/cli/commands/picocli/GenerateSubcommand.java +++ b/src/main/java/com/crowdin/cli/commands/picocli/GenerateSubcommand.java @@ -14,20 +14,25 @@ @CommandLine.Command( name = CommandNames.GENERATE, - aliases = CommandNames.ALIAS_GENERATE) + aliases = CommandNames.ALIAS_GENERATE, + sortOptions = false +) public class GenerateSubcommand extends GenericActCommand { + @CommandLine.Option(names = {"-d", "--destination"}, paramLabel = "...", descriptionKey = "crowdin.generate.destination", defaultValue = "crowdin.yml", order = -2) + private Path destinationPath; + @CommandLine.Option(names = {"-T", "--token"}, paramLabel = "...", descriptionKey = "params.token", order = -2) private String token; - @CommandLine.Option(names = {"--base-url"}, paramLabel = "...", descriptionKey = "params.base-url", order = -2) - private String baseUrl; + @CommandLine.Option(names = {"-i", "--project-id"}, paramLabel = "...", descriptionKey = "params.project-id", order = -2) + private String projectId; @CommandLine.Option(names = {"--base-path"}, paramLabel = "...", descriptionKey = "params.base-path", order = -2) private String basePath; - @CommandLine.Option(names = {"-i", "--project-id"}, paramLabel = "...", descriptionKey = "params.project-id", order = -2) - private String projectId; + @CommandLine.Option(names = {"--base-url"}, paramLabel = "...", descriptionKey = "params.base-url", order = -2) + private String baseUrl; @CommandLine.Option(names = {"-s", "--source"}, paramLabel = "...", descriptionKey = "params.source", order = -2) private String source; @@ -38,9 +43,6 @@ public class GenerateSubcommand extends GenericActCommand