"foo.yaml",
flag,
];
if let Some(value) = value {
args.push(value);
}
assert!(Arguments::try_parse_from(args)
.unwrap_err()
.to_string()
.contains("the argument '--batch <BATCH>' cannot be used with"));
}
}
#[test]
fn batch_or_file_is_required() {
assert!(
Arguments::try_parse_from(["ord", "wallet", "inscribe", "--fee-rate", "1",])
.unwrap_err()
.to_string()
.contains("error: the following required arguments were not provided:\n <--file <FILE>|--batch <BATCH>>")
);
}
}