pub(crate) fn has_default_value(&self) -> bool {
        match self.flag_type {
            Type::Required { ref default_value } => default_value.is_some(),
            Type::Boolean => true,
            Type::Positional {
                ref default_value, ..
            } => default_value.is_some(),
            _ => false,
        }
    }
/// Returns true if this Spec describes a flag which has a default value
/// (that is, one which we will still store a value for even if it does not
/// appear in the command-line arguments).
Returns true if this Spec describes a flag which has a default value
(that is, one which we will still store a value for even if it does not
appear in the command-line arguments).
Returns true if this Spec describes a flag which has a default value ( that is one which we will still store a value for even if it does not appear in the command - line arguments ) .
pub(crate) fn has_default_value(&self) -> bool {
        match self.flag_type {
            Type::Required { ref default_value } => default_value.is_some(),
            Type::Boolean => true,
            Type::Positional {
                ref default_value, ..
            } => default_value.is_some(),
            _ => false,
        }
    }
pub ( crate ) fn has_default_value ( & self ) -> bool { match self . flag_type { Type :: Required { ref default_value } => default_value . is_some ( ) , Type :: Boolean => true , Type :: Positional { ref default_value , .. } => default_value . is_some ( ) , _ => false , } }
Returns true if this Spec describes a flag which has a default value
(that is, one which we will still store a value for even if it does not
appear in the command-line arguments).
Returns true if this Spec describes a flag which has a default value ( that is one which we will still store a value for even if it does not appear in the command - line arguments ) .
&self
&self