Binboo.Core.Application.CommandParameters C# (CSharp) Method

CommandParameters() private static method

private static CommandParameters ( string commandLine ) : string
commandLine string
return string
        private static string CommandParameters(string commandLine)
        {
            MatchCollection arguments = Regex.Matches(
                                    commandLine,
                                    @"[A-Za-z][A-Za-z0-9]*\s(?<param>.*)",
                                    RegexOptions.IgnoreCase | RegexOptions.Multiline |
                                    RegexOptions.CultureInvariant |
                                    RegexOptions.IgnorePatternWhitespace |
                                    RegexOptions.Compiled);

            return arguments.Count == 1
                ? arguments[0].Groups["param"].Value
                : string.Empty;
        }