bool ParseKeyCore(string arg, ref bool onlyTargets, ref int targetIndex, ref Dictionary <object, bool> usedOptions) { string v; ArgOption option = FindOption(arg.Substring(1), out v, ref usedOptions); if (option == null) { return(false); } if (!option.IsParameter && v != null) { return(false); } if (option.IsParameter && v == null) { return(false); } option.DoAction(v); return(true); }
bool ParseKeyValue(string arg, ref bool onlyTargets, ref ArgOption nextKey, ref int targetIndex, ref Dictionary <object, bool> usedOptions) { nextKey.DoAction(arg); nextKey = null; return(true); }