BadScript 2
Loading...
Searching...
No Matches
Options_With_Sequence_Having_Separator_And_Values.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
3using System.Collections.Generic;
4
6{
8 {
9 [Value(0, Required = true)]
10 public string InputFileName { get; set; }
11
12 [Option('o', "output")]
13 public string OutputFileName { get; set; }
14
15 [Option('i', "include", Separator = ',')]
16 public IEnumerable<string> Included { get; set; }
17
18 [Option('e', "exclude", Separator = ',')]
19 public IEnumerable<string> Excluded { get; set; }
20 }
21
23 {
24 [Option('c', "channels", Required = true, Separator = ':', HelpText = "Channel names")]
25 public IEnumerable<string> Channels { get; set; }
26
27 [Value(0, Required = true, MetaName = "file_path", HelpText = "Path of archive to be processed")]
28 public string ArchivePath { get; set; }
29 }
30
32 {
33 [Option('a', "aa", Required = false, Separator = ',')]
34 public IEnumerable<string> A { get; set; }
35
36 [Option('b', "bb", Required = false)]
37 public string B { get; set; }
38
39 [Value(0, Required = true)]
40 public string C { get; set; }
41 }
42
43 public enum FMode { C, D, S };
44
46 {
47 [Option("fm", Separator=',', Default = new[] { FMode.S })]
48 public IEnumerable<FMode> Mode { get; set; }
49
50 [Option('q')]
51 public bool q { get;set; }
52
53 [Value(0)]
54 public IList<string> Files { get; set; }
55 }
56
58 {
59 [Option("verbose", Required = false, Default = false, HelpText = "Generate process tracing information")]
60 public bool Verbose { get; set; }
61
62 [Option("outdir", Required = false, Default = ".", HelpText = "Directory to look for object file")]
63 public string OutDir { get; set; }
64
65 [Option("modules", Required = true, Separator = ',', HelpText = "Directories to look for module file")]
66 public IEnumerable<string> ModuleDirs { get; set; }
67
68 [Option("ignore", Required = false, Separator = ' ', HelpText = "List of additional module name references to ignore")]
69 public IEnumerable<string> Ignores { get; set; }
70
71 [Value(0, Required = true, HelpText = "List of source files to process")]
72 public IEnumerable<string> Srcs { get; set; }
73 }
74}