Mono.Tools.CertificateManager.GetCommand C# (CSharp) Méthode

GetCommand() static private méthode

static private GetCommand ( string arg ) : string
arg string
Résultat string
		static string GetCommand (string arg) 
		{
			if ((arg == null) || (arg.Length < 1))
				return null;

			switch (arg [0]) {
				case '/':
					return arg.Substring (1).ToUpper ();
				case '-':
					if (arg.Length < 2)
						return null;
					int n = ((arg [1] == '-') ? 2 : 1);
					return arg.Substring (n).ToUpper ();
				default:
					return arg;
			}
		}