public IRepoActionSettings Build() { var options = new OptionSet(); var settings = new GraphSettings(options); settings.Parse(_args); if (_help && !_trueCounter.Any(settings.Compile, settings.Export)) { return(new ShowHelpSettings("Graph Options", options)); } _validator.Validate(settings).ThrowIfAny(options); var subBuilder = _builderSelector.GetBuilder(settings); subBuilder.SetArgs(_args); subBuilder.SetHelp(_help); return(subBuilder.Build()); }