You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by dr...@apache.org on 2022/10/03 13:01:08 UTC
[ratis] 03/03: RATIS-1713. Fix TakeSnapshotCommand's usage info (#753)
This is an automated email from the ASF dual-hosted git repository.
dragonyliu pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/ratis.git
commit 46a5623c00829f027ddf5bc01ba7eedd0778cfba
Author: tison <wa...@gmail.com>
AuthorDate: Sun Oct 2 17:24:28 2022 +0800
RATIS-1713. Fix TakeSnapshotCommand's usage info (#753)
(cherry picked from commit 3bc72c6f383b723f545c52c25e3ea2ea5be0aac1)
---
.../org/apache/ratis/shell/cli/sh/snapshot/TakeSnapshotCommand.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ratis-shell/src/main/java/org/apache/ratis/shell/cli/sh/snapshot/TakeSnapshotCommand.java b/ratis-shell/src/main/java/org/apache/ratis/shell/cli/sh/snapshot/TakeSnapshotCommand.java
index e3c6740ec..10bac3497 100644
--- a/ratis-shell/src/main/java/org/apache/ratis/shell/cli/sh/snapshot/TakeSnapshotCommand.java
+++ b/ratis-shell/src/main/java/org/apache/ratis/shell/cli/sh/snapshot/TakeSnapshotCommand.java
@@ -79,7 +79,11 @@ public class TakeSnapshotCommand extends AbstractRatisCommand {
+ " [-%s <RAFT_GROUP_ID>]"
+ " [-%s <timeoutInMs>]"
+ " [-%s <raftPeerId>]",
- getCommandName(), PEER_OPTION_NAME, GROUPID_OPTION_NAME, TAKE_SNAPSHOT_TIMEOUT_OPTION_NAME);
+ getCommandName(),
+ PEER_OPTION_NAME,
+ GROUPID_OPTION_NAME,
+ TAKE_SNAPSHOT_TIMEOUT_OPTION_NAME,
+ PEER_ID_OPTION_NAME);
}
@Override