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 64181e9 commit f638944Copy full SHA for f638944
rewatch/src/main.rs
@@ -256,6 +256,17 @@ mod tests {
256
}
257
258
259
+ #[test]
260
+ fn double_dash_keeps_following_args_positional() {
261
+ let cli = parse(&["rescript", "--", "-v"]).expect("expected build command");
262
+
263
+ assert_eq!(cli.verbose.log_level_filter(), LevelFilter::Info);
264
+ match cli.command {
265
+ cli::Command::Build(build_args) => assert_eq!(build_args.folder.folder, "-v"),
266
+ other => panic!("expected build command, got {other:?}"),
267
+ }
268
269
270
#[test]
271
fn unknown_subcommand_help_uses_global_help() {
272
let err = parse(&["rescript", "xxx", "--help"]).expect_err("expected global help");
0 commit comments