Advertisement
AlvinSeville7cf

genereted code

Jul 8th, 2021
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4.  
  5. internal class Program
  6. {
  7.     public static void Main(string[] args)
  8.     {
  9.         for (var i = 0; i < args.Length; i++)
  10.         {
  11.             string option = args[i];
  12.             string value = i + 1 < args.Length ? args[i + 1] : string.Empty;
  13.  
  14.             switch (option)
  15.             {
  16.                 case "--help":
  17.                     Help();
  18.                     break;
  19.                 case "--version":
  20.                     Version();
  21.                     break;
  22.                 default:
  23.                     Console.Error.WriteLine($"Option {option} is unsupported now.");
  24.                     break;
  25.             }
  26.         }  
  27.     }
  28.  
  29.     private static void Help()
  30.     {
  31.     }
  32.  
  33.     private static void Version()
  34.     {
  35.     }
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement