We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2b6075 commit 7ce0c32Copy full SHA for 7ce0c32
src/main.rs
@@ -119,7 +119,11 @@ fn parse_args() -> Args {
119
.about("Script file or expression to execute.")
120
.required_unless_present_any(&["clear-cache"])
121
.number_of_values(1)
122
- .conflicts_with_all(&["list-templates"])
+ .conflicts_with_all(if cfg!(windows) {
123
+ &["list-templates", "file-association"]
124
+ } else {
125
+ &["list-templates"]
126
+ })
127
)
128
.arg(Arg::new("script-args")
129
.index(2)
@@ -268,7 +272,6 @@ fn parse_args() -> Args {
268
272
269
273
.group(
270
274
ArgGroup::new("file-association")
271
- .conflicts_with_all(&["script"])
275
.args(&["install-file-association", "uninstall-file-association"]),
276
);
277
0 commit comments