copyWithout method

ArgConfig copyWithout({
  1. bool shortPrefix = false,
  2. bool disableOptionsAfter = false,
  3. bool inverseGenerator = false,
})

Creates a copy of this configuration, with any true parameters replaced with null.

Implementation

ArgConfig copyWithout(
        {bool shortPrefix = false,
        bool disableOptionsAfter = false,
        bool inverseGenerator = false}) =>
    ArgConfig(
        longPrefix: longPrefix,
        shortPrefix: shortPrefix ? null : this.shortPrefix,
        noOptionsAfterPositional: noOptionsAfterPositional,
        disableOptionsAfter:
            disableOptionsAfter ? null : this.disableOptionsAfter,
        inverseGenerator: inverseGenerator ? null : this.inverseGenerator);