Lines Matching full:opt
6 enum Opt { in test_single_word_enum_variant_is_default_renamed_into_kebab_case() enum
11 Opt::Command { foo: 0 }, in test_single_word_enum_variant_is_default_renamed_into_kebab_case()
12 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "command", "0"])) in test_single_word_enum_variant_is_default_renamed_into_kebab_case()
19 enum Opt { in test_multi_word_enum_variant_is_renamed() enum
24 Opt::FirstCommand { foo: 0 }, in test_multi_word_enum_variant_is_renamed()
25 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "first-command", "0"])) in test_multi_word_enum_variant_is_renamed()
33 struct Opt { in test_standalone_long_generates_kebab_case() struct
39 Opt { FOO_OPTION: true }, in test_standalone_long_generates_kebab_case()
40 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo-option"])) in test_standalone_long_generates_kebab_case()
47 struct Opt { in test_custom_long_overwrites_default_name() struct
53 Opt { foo_option: true }, in test_custom_long_overwrites_default_name()
54 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_custom_long_overwrites_default_name()
61 struct Opt { in test_standalone_long_uses_previous_defined_custom_name() struct
67 Opt { foo_option: true }, in test_standalone_long_uses_previous_defined_custom_name()
68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_standalone_long_uses_previous_defined_custom_name()
75 struct Opt { in test_standalone_long_ignores_afterwards_defined_custom_name() struct
81 Opt { foo_option: true }, in test_standalone_long_ignores_afterwards_defined_custom_name()
82 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo-option"])) in test_standalone_long_ignores_afterwards_defined_custom_name()
90 struct Opt { in test_standalone_short_generates_kebab_case() struct
96 Opt { FOO_OPTION: true }, in test_standalone_short_generates_kebab_case()
97 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-f"])) in test_standalone_short_generates_kebab_case()
104 struct Opt { in test_custom_short_overwrites_default_name() struct
110 Opt { foo_option: true }, in test_custom_short_overwrites_default_name()
111 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-o"])) in test_custom_short_overwrites_default_name()
118 struct Opt { in test_standalone_short_uses_previous_defined_custom_name() struct
124 Opt { foo_option: true }, in test_standalone_short_uses_previous_defined_custom_name()
125 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-o"])) in test_standalone_short_uses_previous_defined_custom_name()
132 struct Opt { in test_standalone_short_ignores_afterwards_defined_custom_name() struct
138 Opt { foo_option: true }, in test_standalone_short_ignores_afterwards_defined_custom_name()
139 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-f"])) in test_standalone_short_ignores_afterwards_defined_custom_name()
146 struct Opt { in test_standalone_long_uses_previous_defined_casing() struct
152 Opt { foo_option: true }, in test_standalone_long_uses_previous_defined_casing()
153 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--FOO_OPTION"])) in test_standalone_long_uses_previous_defined_casing()
160 struct Opt { in test_standalone_short_uses_previous_defined_casing() struct
166 Opt { foo_option: true }, in test_standalone_short_uses_previous_defined_casing()
167 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-F"])) in test_standalone_short_uses_previous_defined_casing()
175 struct Opt { in test_standalone_long_works_with_verbatim_casing() struct
181 Opt { _fOO_oPtiON: true }, in test_standalone_long_works_with_verbatim_casing()
182 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--_fOO_oPtiON"])) in test_standalone_long_works_with_verbatim_casing()
189 struct Opt { in test_standalone_short_works_with_verbatim_casing() struct
195 Opt { _foo: true }, in test_standalone_short_works_with_verbatim_casing()
196 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-_"])) in test_standalone_short_works_with_verbatim_casing()
204 struct Opt { in test_rename_all_is_propagated_from_struct_to_fields() struct
210 Opt { foo: true }, in test_rename_all_is_propagated_from_struct_to_fields()
211 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--FOO"])) in test_rename_all_is_propagated_from_struct_to_fields()
219 struct Opt { in test_rename_all_is_not_propagated_from_struct_into_flattened() struct
231 Opt { in test_rename_all_is_not_propagated_from_struct_into_flattened()
234 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_rename_all_is_not_propagated_from_struct_into_flattened()
242 struct Opt { in test_rename_all_is_not_propagated_from_struct_into_subcommand() struct
256 Opt { in test_rename_all_is_not_propagated_from_struct_into_subcommand()
259 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "command", "--foo"])) in test_rename_all_is_not_propagated_from_struct_into_subcommand()
267 enum Opt { in test_rename_all_is_propagated_from_enum_to_variants_and_their_fields() enum
276 Opt::FirstVariant, in test_rename_all_is_propagated_from_enum_to_variants_and_their_fields()
277 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "FIRST_VARIANT"])) in test_rename_all_is_propagated_from_enum_to_variants_and_their_fields()
281 Opt::SecondVariant { foo: true }, in test_rename_all_is_propagated_from_enum_to_variants_and_their_fields()
282 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "SECOND_VARIANT", "--FOO"])) in test_rename_all_is_propagated_from_enum_to_variants_and_their_fields()
290 enum Opt { in test_rename_all_is_propagation_can_be_overridden() enum
303 Opt::FirstVariant { foo_option: true }, in test_rename_all_is_propagation_can_be_overridden()
304 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "first-variant", "--foo-option"])) in test_rename_all_is_propagation_can_be_overridden()
308 Opt::SecondVariant { foo_option: true }, in test_rename_all_is_propagation_can_be_overridden()
309 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "SECOND_VARIANT", "--foo-option"])) in test_rename_all_is_propagation_can_be_overridden()
316 struct Opt { in test_lower_is_renamed() struct
322 Opt { foo_option: true }, in test_lower_is_renamed()
323 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foooption"])) in test_lower_is_renamed()
330 struct Opt { in test_upper_is_renamed() struct
336 Opt { foo_option: true }, in test_upper_is_renamed()
337 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--FOOOPTION"])) in test_upper_is_renamed()