Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ public class ListPipelinesSubcommand extends ScmSubcommand {
private String replication;

@CommandLine.Option(
names = {"-ffc", "--filterByFactor"},
names = {"-ffc", "--filterByFactor", "--filter-by-factor"},
description = "[deprecated] Filter pipelines by factor (e.g. ONE, THREE) "
+ " (implies RATIS replication type)")
private ReplicationFactor factor;

@CommandLine.Option(names = {"-s", "--state", "-fst", "--filterByState"},
@CommandLine.Option(
names = {"-s", "--state", "-fst", "--filterByState", "--filter-by-state"},
description = "Filter listed pipelines by State, eg OPEN, CLOSED",
defaultValue = "")
private String state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class TransferOmLeaderSubCommand implements Callable<Void> {

static class TransferOption {
@CommandLine.Option(
names = {"-n", "--newLeaderId"},
names = {"-n", "--newLeaderId", "--new-leader-id"},
description = "The new leader id of OM to transfer leadership. E.g OM1."
)
private String omNodeId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static class TransactionsOption {
private int count;
}

@CommandLine.Option(names = {"-s", "--startTxId"},
@CommandLine.Option(names = {"-s", "--startTxId", "--start-tx-id"},
defaultValue = "0",
description = "The least transaction ID to start with, default 0." +
" Only work with -c/--count")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class TransferScmLeaderSubCommand implements Callable<Void> {

static class TransferOption {
@CommandLine.Option(
names = {"-n", "--newLeaderId"},
names = {"-n", "--newLeaderId", "--new-leader-id"},
description = "The new leader id of SCM to transfer leadership. " +
"Should be ScmId(UUID)."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class DBScanner implements Callable<Void>, SubcommandWithParent {
description = "Key from which to iterate the DB")
private static String startKey;

@CommandLine.Option(names = {"--dnSchema", "-d"},
@CommandLine.Option(names = {"--dnSchema", "-d", "--dn-schema"},
description = "Datanode DB Schema Version : V1/V2/V3",
defaultValue = "V2")
private static String dnDBSchemaVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
@MetaInfServices(SubcommandWithParent.class)
public class ReadReplicas extends KeyHandler implements SubcommandWithParent {

@CommandLine.Option(names = {"--outputDir", "-o"},
@CommandLine.Option(names = {"--outputDir", "-o", "--output-dir"},
description = "Destination where the directory will be created" +
" for the downloaded replicas and the manifest file.",
defaultValue = "/opt/hadoop")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
* Base Ratis Log Parser used by generic, datanode etc.
*/
public abstract class BaseLogParser {
@CommandLine.Option(names = {"-s", "--segmentPath"}, required = true,
@CommandLine.Option(names = {"-s", "--segmentPath", "--segment-path"},
required = true,
description = "Path of the segment file")
private File segmentFile;

Expand Down