Skip to content

Commit 7ce0c32

Browse files
committed
Try fixing the Windows build
1 parent a2b6075 commit 7ce0c32

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ fn parse_args() -> Args {
119119
.about("Script file or expression to execute.")
120120
.required_unless_present_any(&["clear-cache"])
121121
.number_of_values(1)
122-
.conflicts_with_all(&["list-templates"])
122+
.conflicts_with_all(if cfg!(windows) {
123+
&["list-templates", "file-association"]
124+
} else {
125+
&["list-templates"]
126+
})
123127
)
124128
.arg(Arg::new("script-args")
125129
.index(2)
@@ -268,7 +272,6 @@ fn parse_args() -> Args {
268272
)
269273
.group(
270274
ArgGroup::new("file-association")
271-
.conflicts_with_all(&["script"])
272275
.args(&["install-file-association", "uninstall-file-association"]),
273276
);
274277

0 commit comments

Comments
 (0)