diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-08-04 14:35:57 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-08-04 14:35:57 +0300 |
| commit | db9119d86fa9e2efd2c3dfab8ac2c49c2ee4da70 (patch) | |
| tree | 6edfb51c6fde983291a415b8b19a972b2aa78548 /Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs | |
| parent | 76d311ad4690b9f88ae71ff097c6592190b65012 (diff) | |
| download | Tango-db9119d86fa9e2efd2c3dfab8ac2c49c2ee4da70.tar.gz Tango-db9119d86fa9e2efd2c3dfab8ac2c49c2ee4da70.zip | |
Added DB, Observables, PMR Hardware Break Sensors & Break Sensors.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs b/Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs index 621a6d10f..d0c4ba1fe 100644 --- a/Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs +++ b/Software/Visual_Studio/Utilities/Tango.Protobuf.CLI/Program.cs @@ -15,6 +15,20 @@ namespace Tango.Protobuf.CLI { Console.Title = "Tango Protobuf Compiler"; +#if DEBUG + + if (args.Length == 0) + { + args = new string[] + { + "-i ..\\..\\..\\PMR\\Messages", + "-o ..\\..\\Tango.PMR", + "-l CSharp", + }; + } + +#endif + if (args.Length == 0) { return ExitHelp(); @@ -24,6 +38,10 @@ namespace Tango.Protobuf.CLI if (CommandLine.Parser.Default.ParseArguments(args, options)) { + options.SourceFolder = options.SourceFolder.Trim(); + options.OutputFolder = options.OutputFolder.Trim(); + options.Language = options.Language.Trim(); + if (!Directory.Exists(options.SourceFolder)) { return ExitError("Could not locate source folder \"" + Path.GetFullPath(options.SourceFolder) + "\""); |
