Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Option.AllowMultipleArgumentsPerToken Property

Definition

Namespace:
System.CommandLine
Assembly:
System.CommandLine.dll
Package:
System.CommandLine v3.0.0-preview.5.26302.115
Source:
Option.cs
Source:
Option.cs
Source:
Option.cs

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.

Gets a value that indicates whether multiple argument tokens are allowed for each option identifier token.

public:
 property bool AllowMultipleArgumentsPerToken { bool get(); void set(bool value); };
public bool AllowMultipleArgumentsPerToken { get; set; }
member this.AllowMultipleArgumentsPerToken : bool with get, set
Public Property AllowMultipleArgumentsPerToken As Boolean

Property Value

Examples

If set to true, the following command line is valid for passing multiple arguments:

> --opt 1 2 3

The following is equivalent and is always valid:

> --opt 1 --opt 2 --opt 3

Applies to


Feedback

Was this page helpful?