You've already forked uutils-args
mirror of
https://github.com/uutils/uutils-args.git
synced 2026-06-10 16:13:08 -07:00
14 lines
241 B
Rust
14 lines
241 B
Rust
use uutils_args::Arguments;
|
|
|
|
#[test]
|
|
fn one_flag() {
|
|
#[derive(Arguments, Clone, Debug, PartialEq, Eq)]
|
|
#[arguments(exit_code = 4)]
|
|
enum Arg {
|
|
#[arg("-f", "--foo")]
|
|
Foo,
|
|
}
|
|
|
|
assert_eq!(Arg::EXIT_CODE, 4);
|
|
}
|