You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OptionParserExtensionMethods.cs 317B

1234567891011
  1. internal static class OptionParserExtensionMethods
  2. {
  3. internal static bool IsOptionFor(this string str, string name, string @switch)
  4. {
  5. if (str != null)
  6. {
  7. return (str.Equals("--" + name) || str.Equals("-" + @switch) || str.Equals("/" + name) || str.Equals("/" + @switch));
  8. }
  9. return false;
  10. }
  11. }