-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace CommandLine.Tests.Fakes | ||
{ | ||
class Simple_Options_With_Env | ||
{ | ||
[Option('s', Default = "", Env = "StringValue")] | ||
public string StringValue { get; set; } | ||
|
||
[Option("bvff", Env = "BoolValueFullFalse", HelpText = "Define a boolean or switch value here.")] | ||
public bool BoolValueFullFalse { get; set; } | ||
[Option("bvft", Env = "BoolValueFullTrue", HelpText = "Define a boolean or switch value here.")] | ||
public bool BoolValueFullTrue { get; set; } | ||
[Option("bvst", Env = "BoolValueShortTrue", HelpText = "Define a boolean or switch value here.")] | ||
public bool BoolValueShortTrue { get; set; } | ||
[Option("bvsf", Env = "BoolValueShortFalse", HelpText = "Define a boolean or switch value here.")] | ||
public bool BoolValueShortFalse { get; set; } | ||
|
||
|
||
[Option('l', Default = 1, Env = "LongValue")] | ||
public long LongValue { get; set; } | ||
|
||
[Option('i', Default = 2, Env = "IntValue")] | ||
public long IntValue { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters