Skip to content

Commit bc05621

Browse files
Marthogtopecongiro
authored andcommitted
Let --dump-default-config default to stdout #2579 (#2586)
1 parent dec307b commit bc05621

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,13 @@ fn make_opts() -> Options {
161161
found reverts to the input file path",
162162
"[Path for the configuration file]",
163163
);
164-
opts.optopt(
164+
opts.opt(
165165
"",
166166
"dump-default-config",
167167
"Dumps default configuration to PATH. PATH defaults to stdout, if omitted.",
168168
"PATH",
169+
getopts::HasArg::Maybe,
170+
getopts::Occur::Optional,
169171
);
170172
opts.optopt(
171173
"",

0 commit comments

Comments
 (0)