@@ -124,6 +124,7 @@ use unicode_width::UnicodeWidthStr;
124
124
mod tests;
125
125
126
126
/// A description of the options that a program can handle.
127
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
127
128
pub struct Options {
128
129
grps : Vec < OptGroup > ,
129
130
parsing_style : ParsingStyle ,
@@ -604,7 +605,7 @@ fn validate_names(short_name: &str, long_name: &str) {
604
605
}
605
606
606
607
/// What parsing style to use when parsing arguments.
607
- #[ derive( Clone , Copy , PartialEq , Eq ) ]
608
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
608
609
pub enum ParsingStyle {
609
610
/// Flags and "free" arguments can be freely inter-mixed.
610
611
FloatingFrees ,
@@ -661,7 +662,7 @@ struct Opt {
661
662
662
663
/// One group of options, e.g., both `-h` and `--help`, along with
663
664
/// their shared description and properties.
664
- #[ derive( Clone , PartialEq , Eq ) ]
665
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
665
666
struct OptGroup {
666
667
/// Short name of the option, e.g. `h` for a `-h` option
667
668
short_name : String ,
0 commit comments