blob: 333a47d3a7423ba8de757ed15640c6e6343361e9 (
plain)
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
32
33
34
35
|
using CommandLine;
using CommandLine.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.MachineStudio.Common.Publish;
namespace Tango.MachineStudio.Publisher.CLI
{
public class PublisherOptions
{
[VerbOption("publish", HelpText = "Publish a machine studio verion.")]
public PublishOptions PublishOptions { get; set; }
[VerbOption("info")]
public InfoOptions InfoOptions { get; set; }
public static bool Parse(PublisherOptions options, String[] args)
{
return Parser.Default.ParseArguments(args, options, (verb, obj) =>
{
});
}
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this,
(HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
}
}
}
|