BadScript 2
Loading...
Searching...
No Matches
Simple_Options_With_ExtraArgs.cs
Go to the documentation of this file.
1
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3
using
System.Collections.Generic;
4
5
namespace
CommandLine.Tests.Fakes
6
{
7
public
class
Simple_Options_WithExtraArgs
8
{
9
[Option(HelpText =
"Define a string value here."
)]
10
public
string
StringValue
{
get
;
set
; }
11
12
[Option(
's'
,
"shortandlong"
, HelpText =
"Example with both short and long name."
)]
13
public
string
ShortAndLong
{
get
;
set
; }
14
15
[Option(
'i'
, Min = 3, Max = 4, Separator =
','
, HelpText =
"Define a int sequence here."
)]
16
public
IEnumerable<int>
IntSequence
{
get
;
set
; }
17
18
[Option(
'x'
, HelpText =
"Define a boolean or switch value here."
)]
19
public
bool
BoolValue
{
get
;
set
; }
20
21
[Value(0, HelpText =
"Define a long value here."
)]
22
public
long
LongValue
{
get
;
set
; }
23
24
[Value(1, HelpText =
"Extra args get collected here."
)]
25
public
IEnumerable<string>
ExtraArgs
{
get
;
set
; }
26
}
27
}
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs
Definition
Simple_Options_With_ExtraArgs.cs:8
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs.ExtraArgs
IEnumerable< string > ExtraArgs
Definition
Simple_Options_With_ExtraArgs.cs:25
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs.BoolValue
bool BoolValue
Definition
Simple_Options_With_ExtraArgs.cs:19
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs.StringValue
string StringValue
Definition
Simple_Options_With_ExtraArgs.cs:10
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs.ShortAndLong
string ShortAndLong
Definition
Simple_Options_With_ExtraArgs.cs:13
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs.LongValue
long LongValue
Definition
Simple_Options_With_ExtraArgs.cs:22
CommandLine.Tests.Fakes.Simple_Options_WithExtraArgs.IntSequence
IEnumerable< int > IntSequence
Definition
Simple_Options_With_ExtraArgs.cs:16
CommandLine.Tests.Fakes
Definition
Custom_Struct.cs:6
deps
commandlineparser
tests
CommandLine.Tests
Fakes
Simple_Options_With_ExtraArgs.cs
Generated by
1.9.8