pub(crate) fn is_required(&self) -> bool {
        if self.has_default_value() {
            return true;
        }
        match self.flag_type {
            Type::Required { .. } => true,
            _ => false,
        }
    }
/// Returns true if this Spec must have an associated value (either one
/// specified or a default) after parsing command line arguments.
Returns true if this Spec must have an associated value (either one
specified or a default) after parsing command line arguments.
Returns true if this Spec must have an associated value ( either one specified or a default ) after parsing command line arguments .
pub(crate) fn is_required(&self) -> bool {
        if self.has_default_value() {
            return true;
        }
        match self.flag_type {
            Type::Required { .. } => true,
            _ => false,
        }
    }
pub ( crate ) fn is_required ( & self ) -> bool { if self . has_default_value ( ) { return true ; } match self . flag_type { Type :: Required { .. } => true , _ => false , } }
Returns true if this Spec must have an associated value (either one
specified or a default) after parsing command line arguments.
Returns true if this Spec must have an associated value ( either one specified or a default ) after parsing command line arguments .
&self
&self