aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher.CLI/PublisherOptions.cs
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));
        }
    }
}
t *out); size_t thread_jogging_request__pack_to_buffer (const ThreadJoggingRequest *message, ProtobufCBuffer *buffer); ThreadJoggingRequest * thread_jogging_request__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void thread_jogging_request__free_unpacked (ThreadJoggingRequest *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*ThreadJoggingRequest_Closure) (const ThreadJoggingRequest *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor thread_jogging_request__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_ThreadJoggingRequest_2eproto__INCLUDED */