bingle_cli 0.2.8

Command line interface for Bingle: register handles, run nodes/relays, and trade BINGLE on Algorand.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use bingle_core::util::cli_utils::parse_start_options_from_args;

#[test]
#[cfg(not(target_os = "ios"))]
pub fn parse_run_args_with_positional_handle() {
    let args = vec!["alice".to_string(), "--relay".to_string()];
    let opts = parse_start_options_from_args(args).expect("should parse");
    assert_eq!(opts.handle, "alice");
    assert!(opts.am_relay);
    // Validate Option fields explicitly per guidelines
    assert!(opts.algo_passphrase.is_none());
    assert!(opts.static_ip.is_none());
}