Skip to content

Commit dbf93cb

Browse files
committed
ravedude: add verbatim_doc_comment to --newline-{on,after}
The help comments are written as “individual” statements, not continuous text, therefore putting each statement on their own line is more appropriate.
1 parent da3eeb9 commit dbf93cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ravedude/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ struct Args {
130130
/// hex (0x) and bin (0b) notations are supported.
131131
/// matching chars/bytes are NOT removed
132132
/// to add newlines after \n (in non-ascii mode), use \n, 0x0a or 0b00001010
133-
#[structopt(long = "newline-on", parse(try_from_str = parse_newline_on))]
133+
#[structopt(long = "newline-on", parse(try_from_str = parse_newline_on), verbatim_doc_comment)]
134134
newline_on: Option<char>,
135135

136136
/// Print a newline after n bytes
137137
/// not used with output_mode ascii
138138
/// defaults to 16 for hex and dec and 8 for bin
139139
/// if dividable by 4, bytes will be grouped to 4
140-
#[structopt(long = "newline-after")]
140+
#[structopt(long = "newline-after", verbatim_doc_comment)]
141141
newline_after: Option<u8>,
142142

143143
/// Which board to interact with.

0 commit comments

Comments
 (0)