forked from commandlineparser/commandline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display appropriate separator when writing default enumerable values …
…in HelpText Fix commandlineparser#490
- Loading branch information
Showing
3 changed files
with
51 additions
and
3 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
18 changes: 18 additions & 0 deletions
18
tests/CommandLine.Tests/Fakes/Options_With_Default_Set_To_Sequence_With_Separator.cs
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,18 @@ | ||
// 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 Options_With_Default_Set_To_Sequence_With_Separator | ||
{ | ||
[Option('z', "strseq", Default = new[] { "a", "b", "c" }, Separator = ',')] | ||
public IEnumerable<string> StringSequence { get; set; } | ||
|
||
[Option('y', "intseq", Default = new[] { 1, 2, 3 }, Separator = ',')] | ||
public IEnumerable<int> IntSequence { get; set; } | ||
|
||
[Option('q', "dblseq", Default = new[] { 1.1, 2.2, 3.3 }, Separator = ',')] | ||
public IEnumerable<int> DoubleSequence { 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