Skip to content

Commit 6cf38c4

Browse files
committed
option order
1 parent d8c4d18 commit 6cf38c4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main/java/com/crowdin/cli/commands/picocli/GenerateSubcommand.java

+10-8
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,25 @@
1414

1515
@CommandLine.Command(
1616
name = CommandNames.GENERATE,
17-
aliases = CommandNames.ALIAS_GENERATE)
17+
aliases = CommandNames.ALIAS_GENERATE,
18+
sortOptions = false
19+
)
1820
public class GenerateSubcommand extends GenericActCommand<NoProperties, NoClient> {
1921

22+
@CommandLine.Option(names = {"-d", "--destination"}, paramLabel = "...", descriptionKey = "crowdin.generate.destination", defaultValue = "crowdin.yml", order = -2)
23+
private Path destinationPath;
24+
2025
@CommandLine.Option(names = {"-T", "--token"}, paramLabel = "...", descriptionKey = "params.token", order = -2)
2126
private String token;
2227

23-
@CommandLine.Option(names = {"--base-url"}, paramLabel = "...", descriptionKey = "params.base-url", order = -2)
24-
private String baseUrl;
28+
@CommandLine.Option(names = {"-i", "--project-id"}, paramLabel = "...", descriptionKey = "params.project-id", order = -2)
29+
private String projectId;
2530

2631
@CommandLine.Option(names = {"--base-path"}, paramLabel = "...", descriptionKey = "params.base-path", order = -2)
2732
private String basePath;
2833

29-
@CommandLine.Option(names = {"-i", "--project-id"}, paramLabel = "...", descriptionKey = "params.project-id", order = -2)
30-
private String projectId;
34+
@CommandLine.Option(names = {"--base-url"}, paramLabel = "...", descriptionKey = "params.base-url", order = -2)
35+
private String baseUrl;
3136

3237
@CommandLine.Option(names = {"-s", "--source"}, paramLabel = "...", descriptionKey = "params.source", order = -2)
3338
private String source;
@@ -38,9 +43,6 @@ public class GenerateSubcommand extends GenericActCommand<NoProperties, NoClient
3843
@CommandLine.Option(names = {"--preserve-hierarchy"}, negatable = true, paramLabel = "...", descriptionKey = "params.preserve-hierarchy", order = -2)
3944
private Boolean preserveHierarchy;
4045

41-
@CommandLine.Option(names = {"-d", "--destination"}, paramLabel = "...", descriptionKey = "crowdin.generate.destination", defaultValue = "crowdin.yml", order = -2)
42-
private Path destinationPath;
43-
4446
@CommandLine.Option(names = "--skip-generate-description", hidden = true)
4547
private boolean skipGenerateDescription;
4648

0 commit comments

Comments
 (0)