40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
//
|
|
// Class: Options
|
|
// Current CLR: 4.0.30319.42000
|
|
// System: Microsoft Visual Studio 10.0
|
|
// Author: dani
|
|
// Created: 9/14/2015 8:01:53 PM
|
|
//
|
|
// Copyright (c) 2015 Informatikbüro Daniel Schick. All rights reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using CommandLine;
|
|
using CommandLine.Text;
|
|
|
|
namespace bsmd.Tool
|
|
{
|
|
public class Options
|
|
{
|
|
[Option('c', "core", Required=false, HelpText="MessageCoreId to process")]
|
|
public string MessageCoreId { get; set; }
|
|
|
|
[Option('v',"verbose", DefaultValue=true, HelpText="print messages to console")]
|
|
public bool Verbose { get; set; }
|
|
|
|
[Option('r', "checkrules", MutuallyExclusiveSet = "command", HelpText = "Use rule engine on message core")]
|
|
public bool CheckRules { get; set; }
|
|
|
|
[ParserState]
|
|
public IParserState LastParserState { get; set; }
|
|
|
|
[HelpOption]
|
|
public string GetUsage()
|
|
{
|
|
return HelpText.AutoBuild(this, (HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
|
|
}
|
|
|
|
|
|
}
|
|
}
|