1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
| Running `target/debug/my-test -v bar --baz`
[ clap::build::app] App::_do_parse
[ clap::build::app] App::_build
[ clap::build::app] App::_derive_display_order:foo
[ clap::build::app] App::_derive_display_order:bar
[ clap::build::app] App::_create_help_and_version
[ clap::build::app] App::_create_help_and_version: Building --help
[ clap::build::app] App::_create_help_and_version: Building --version
[ clap::build::app] App::_create_help_and_version: Building help
[ clap::build::app] App::_debug_asserts
[ clap::build::arg] Arg::_debug_asserts:v
[ clap::build::arg] Arg::_debug_asserts:help
[ clap::build::arg] Arg::_debug_asserts:version
[ clap::parse::parser] Parser::get_matches_with
[ clap::parse::parser] Parser::_build
[ clap::parse::parser] Parser::_verify_positionals
[ clap::parse::parser] Parser::get_matches_with: Begin parsing '"-v"' ([45, 118])
[ clap::parse::parser] Parser::is_new_arg: "-v":NotFound
[ clap::parse::parser] Parser::is_new_arg: arg_allows_tac=false
[ clap::parse::parser] Parser::is_new_arg: - found
[ clap::parse::parser] Parser::is_new_arg: starts_new_arg=true
[ clap::parse::parser] Parser::possible_subcommand: arg="-v"
[ clap::parse::parser] Parser::get_matches_with: possible_sc=false, sc=None
[ clap::parse::parser] Parser::parse_short_arg: full_arg="-v"
[ clap::parse::parser] Parser::parse_short_arg:iter:v
[ clap::parse::parser] Parser::parse_short_arg:iter:v: Found valid opt or flag
[ clap::util::argstr] ArgSplit::next: self=ArgSplit { sep: [118, 0, 0, 0], sep_len: 1, val: [118], pos: 0 }
[ clap::parse::parser] Parser::parse_short_arg:iter:v: i=1, arg_os="v"
[ clap::parse::parser] Parser::parse_opt; opt=v, val=None
[ clap::parse::parser] Parser::parse_opt; opt.settings=ArgFlags(MULTIPLE_OCC | TAKES_VAL | DELIM_NOT_SET | MULTIPLE_VALS)
[ clap::parse::parser] Parser::parse_opt; Checking for val...
[ clap::parse::parser] None
[ clap::parse::arg_matcher] ArgMatcher::inc_occurrence_of: arg=v
[ clap::parse::arg_matcher] ArgMatcher::inc_occurrence_of: first instance
[ clap::parse::parser] groups_for_arg: name=v
[ clap::parse::parser] Parser::parse_opt: More arg vals required...
[ clap::parse::parser] Parser::get_matches_with: After parse_short_arg Opt(v)
[ clap::parse::parser] Parser::maybe_inc_pos_counter: arg = v
[ clap::parse::parser] Parser::maybe_inc_pos_counter: is it positional?
[ clap::parse::parser] No
[ clap::parse::parser] groups_for_arg: name=v
[ clap::parse::parser] Parser::get_matches_with: Begin parsing '"bar"' ([98, 97, 114])
[ clap::parse::parser] Parser::is_new_arg: "bar":Opt(v)
[ clap::parse::parser] Parser::is_new_arg: arg_allows_tac=false
[ clap::parse::parser] Parser::is_new_arg: probably value
[ clap::parse::parser] Parser::is_new_arg: starts_new_arg=false
[ clap::parse::parser] Parser::add_val_to_arg; arg=v, val="bar"
[ clap::parse::parser] Parser::add_val_to_arg; trailing_vals=false, DontDelimTrailingVals=false
[ clap::parse::parser] Parser::add_single_val_to_arg: adding val..."bar"
[ clap::parse::parser] groups_for_arg: name=v
[ clap::parse::arg_matcher] ArgMatcher::needs_more_vals: o=v
[ clap::parse::parser] Parser::get_matches_with: Begin parsing '"--baz"' ([45, 45, 98, 97, 122])
[ clap::parse::parser] Parser::is_new_arg: "--baz":Opt(v)
[ clap::parse::parser] Parser::is_new_arg: arg_allows_tac=false
[ clap::parse::parser] Parser::is_new_arg: -- found
[ clap::parse::parser] Parser::is_new_arg: starts_new_arg=true
[ clap::parse::parser] Parser::parse_long_arg
[ clap::parse::parser] Parser::parse_long_arg: Does it contain '='...
[ clap::parse::parser] No
[ clap::parse::parser] Parser::parse_long_arg: Didn't match anything
[ clap::parse::parser] Parser::did_you_mean_error: arg=baz
[ clap::parse::parser] Parser::did_you_mean_error: longs=["help", "version"]
[ clap::build::app] App::_build
[ clap::build::app] App::_derive_display_order:bar
[ clap::build::app] App::_create_help_and_version
[ clap::build::app] App::_create_help_and_version: Building --help
[ clap::build::app] App::_create_help_and_version: Building --version
[ clap::build::app] App::_debug_asserts
[ clap::build::arg] Arg::_debug_asserts:baz
[ clap::build::arg] Arg::_debug_asserts:help
[ clap::build::arg] Arg::_debug_asserts:version
[ clap::output::usage] Usage::create_usage_with_title
[ clap::output::usage] Usage::create_usage_no_title
[ clap::output::usage] Usage::create_smart_usage
[ clap::output::usage] Usage::get_required_usage_from: incls=[v], matcher=false, incl_last=true
[ clap::output::usage] Usage::get_required_usage_from:iter:v
[ clap::output::usage] Usage::get_required_usage_from: ret_val=["-v ..."]
[ clap::build::app] App::color: Color setting...
[ clap::build::app] Auto
[ clap::output::fmt] is_a_tty: stderr=true
error: Found argument '--baz' which wasn't expected, or isn't valid in this context
Did you mean to put '--baz' after the subcommand 'bar'?
If you tried to supply `--baz` as a PATTERN use `-- --baz`
USAGE:
my-test -v ...
For more information try --help
|