4 namespace Tizen.Runtime.Tools
\r
8 private static readonly string version = "1.0";
\r
10 public static void Main(string[] args)
\r
12 Console.WriteLine($"\n### Dotnet Extractor Tool (v{version}) ###\n");
\r
16 string command = null;
\r
17 if (0 < args.Length)
\r
24 Environment.Exit(0);
\r
34 Console.WriteLine($"Unknown option [{args[0]}]\n");
\r
35 Environment.Exit(0);
\r
39 if (command == null)
\r
42 throw new InvalidDataException("Required command was not provided\n");
\r
44 else if (command == "line")
\r
46 new LineNumber().LineNumbers(args);
\r
48 else if (command == "code")
\r
50 new CodeBlock().CodeBlocks();
\r
55 Console.Error.WriteLine(e.Message);
\r
59 public static void UsageCommand()
\r
61 string UsageMsg = "Usage: dotnet-extractor [Command]\n\n"
\r
63 + " convert Get the line number from the token value in the stacktrace\n";
\r
64 //+ " code-block Get code block\n";
\r
65 Console.WriteLine(UsageMsg);
\r