Skip to content

Commit bbb9220

Browse files
authored
MINOR: Fix em-dash in command option documentation (#20975)
Replace em-dash (–) with double hyphen (--) in '--execute' option documentation for both ShareGroupCommandOptions and StreamsGroupCommandOptions to ensure proper display and consistency. Introduced in commit ffab7e6. Reviewers: Ming-Yen Chung <[email protected]>, Chia-Ping Tsai <[email protected]>
1 parent b4aa108 commit bbb9220

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommandOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class ShareGroupCommandOptions extends CommandDefaultOptions {
5050
"Has 2 execution options: --dry-run to plan which offsets to reset, and --execute to reset the offsets. " + NL +
5151
"You must choose one of the following reset specifications: --to-datetime, --to-earliest, --to-latest." + NL +
5252
"To define the scope use --all-topics or --topic." + NL +
53-
"Fails if neither '--dry-run' nor 'execute' is specified.";
53+
"Fails if neither '--dry-run' nor '--execute' is specified.";
5454
private static final String DRY_RUN_DOC = "Only show results without executing changes on share groups. Supported operations: reset-offsets.";
5555
private static final String EXECUTE_DOC = "Execute operation. Supported operations: reset-offsets.";
5656
private static final String RESET_TO_DATETIME_DOC = "Reset offsets to offset from datetime. Format: 'YYYY-MM-DDThh:mm:ss.sss'";

tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommandOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class StreamsGroupCommandOptions extends CommandDefaultOptions {
5656
"You must choose one of the following reset specifications: --to-datetime, --by-duration, --to-earliest, " +
5757
"--to-latest, --shift-by, --from-file, --to-current, --to-offset." + NL +
5858
"To define the scope use --all-input-topics or --input-topic. One scope must be specified unless you use '--from-file'." + NL +
59-
"Fails if neither '--dry-run' nor 'execute' is specified.";
59+
"Fails if neither '--dry-run' nor '--execute' is specified.";
6060
private static final String DRY_RUN_DOC = "Only show results without executing changes on streams group. Supported operations: reset-offsets.";
6161
private static final String EXECUTE_DOC = "Execute operation. Supported operations: reset-offsets.";
6262
private static final String EXPORT_DOC = "Export operation execution to a CSV file. Supported operations: reset-offsets.";

0 commit comments

Comments
 (0)