/// <inheritdoc/> public override void Parse(IEnumerable <string> args) { base.Parse(args); SetInterfaceUri(GetCanonicalUri(AdditionalArgs[0])); AdditionalArgs.RemoveAt(0); if (Requirements.InterfaceUri.IsFile && File.Exists(Requirements.InterfaceUri.LocalPath)) { TryParseSelectionsDocument(); } }
/// <inheritdoc/> public override void Parse(IEnumerable <string> args) { base.Parse(args); Requirements.InterfaceUri = GetCanonicalUri(AdditionalArgs[0]); AdditionalArgs.RemoveAt(0); if (_version != null) { Requirements.ExtraRestrictions[Requirements.InterfaceUri] = _version; } else if (_notBefore != null || _before != null) { Requirements.ExtraRestrictions[Requirements.InterfaceUri] = new VersionRange(_notBefore, _before); } if (Requirements.InterfaceUri.IsFile && File.Exists(Requirements.InterfaceUri.LocalPath)) { TryParseSelectionsDocument(); } }