Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- internal class Program
- {
- public static void Main(string[] args)
- {
- for (var i = 0; i < args.Length; i++)
- {
- string option = args[i];
- string value = i + 1 < args.Length ? args[i + 1] : string.Empty;
- switch (option)
- {
- case "--help":
- Help();
- break;
- case "--version":
- Version();
- break;
- default:
- Console.Error.WriteLine($"Option {option} is unsupported now.");
- break;
- }
- }
- }
- private static void Help()
- {
- }
- private static void Version()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement