CommandLineBuilderExtensions.EnableLegacyDoubleDashBehavior Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the behavior when parsing a double dash (--
) in a command line.
public static System.CommandLine.Builder.CommandLineBuilder EnableLegacyDoubleDashBehavior(this System.CommandLine.Builder.CommandLineBuilder builder, bool value = true);
static member EnableLegacyDoubleDashBehavior : System.CommandLine.Builder.CommandLineBuilder * bool -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function EnableLegacyDoubleDashBehavior (builder As CommandLineBuilder, Optional value As Boolean = true) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
- value
- Boolean
Returns
Remarks
When set to true
, all tokens following --
will be placed into the UnparsedTokens collection. When set to false
, all tokens following --
will be treated as command arguments, even if they match an existing option.
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.