.unwrap_err(); assert_eq!( Arguments::try_parse_from(["ord", "--regtest", "index", "update"]) .unwrap() .options .chain(), Chain::Regtest ); assert_eq!( Arguments::try_parse_from(["ord", "-r", "index", "update"]) .unwrap() .options .chain(), Chain::Regtest ); Arguments::try_parse_from(["ord", "--testnet", "--chain", "signet", "index", "update"]) .unwrap_err(); assert_eq!( Arguments::try_parse_from(["ord", "--testnet", "index", "update"]) .unwrap() .options .chain(), Chain::Testnet ); assert_eq!( Arguments::try_parse_from(["ord", "-t", "index", "update"]) .unwrap() .options .chain(), Chain::Testnet ); } #[test] fn wallet_flag_overrides_default_name() { assert_eq!( Arguments::try_parse_from(["ord", "wallet", "create"]) .unwrap() .options .wallet, "ord" ); assert_eq!(