Ejemplo n.º 1
0
 public static string GetArg( ArgKey key ) {
     if( Args.ContainsKey( key ) ) {
         return Args[key];
     } else {
         return null;
     }
 }
Ejemplo n.º 2
0
 /// <summary> Checks whether a command-line argument was set. </summary>
 /// <param name="key"> Command-line argument name (enumerated) </param>
 /// <returns> True if given argument was given. Otherwise false. </returns>
 public static bool HasArg( ArgKey key ) {
     return Args.ContainsKey( key );
 }