ChrisCompleteCodeTrunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using CommandLine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LFDataInit
{
public class Program
{
public static CommandLineOptions CommandLineArguments;
static void Main(string[] args)
{
Parser.Default.ParseArguments<CommandLineOptions>(args)
.WithParsed<CommandLineOptions>(opts => RunOptionsAndReturnExitCode(opts))
.WithNotParsed<CommandLineOptions>((errs) => HandleParseError(errs));
LFDataProvider dataProvider = new LFDataProvider(CommandLineArguments);
}
private static void HandleParseError(IEnumerable<Error> errs)
{
Environment.Exit(0);
}
private static void RunOptionsAndReturnExitCode(CommandLineOptions opts)
{
CommandLineArguments = opts;
}
}
}
|
Revision |
Author |
Commited |
Message |
1
|
BBDSCHRIS
|
Wed 22 Aug, 2018 20:08:03 +0000 |
|