public static string GetArg( ArgKey key ) { if( Args.ContainsKey( key ) ) { return Args[key]; } else { return null; } }
/// <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 ); }