internal void GetCommandLineProperties(FormattingCommandLineParameters parameters, bool isTable) { if (Property != null) { CommandParameterDefinition def; if (isTable) { def = new FormatTableParameterDefinition(); } else { def = new FormatListParameterDefinition(); } ParameterProcessor processor = new ParameterProcessor(def); TerminatingErrorContext invocationContext = new TerminatingErrorContext(this); parameters.mshParameterList = processor.ProcessParameters(Property, invocationContext); } if (!string.IsNullOrEmpty(this.View)) { // we have a view command line switch if (parameters.mshParameterList.Count != 0) { ReportCannotSpecifyViewAndProperty(); } parameters.viewName = this.View; } }
internal void GetCommandLineProperties(FormattingCommandLineParameters parameters, bool isTable) { if (this.props != null) { CommandParameterDefinition definition; if (isTable) { definition = new FormatTableParameterDefinition(); } else { definition = new FormatListParameterDefinition(); } ParameterProcessor processor = new ParameterProcessor(definition); TerminatingErrorContext invocationContext = new TerminatingErrorContext(this); parameters.mshParameterList = processor.ProcessParameters(this.props, invocationContext); } if (!string.IsNullOrEmpty(base.View)) { if (parameters.mshParameterList.Count != 0) { base.ReportCannotSpecifyViewAndProperty(); } parameters.viewName = base.View; } }
internal void GetCommandLineProperties(FormattingCommandLineParameters parameters, bool isTable) { if (Property != null) { CommandParameterDefinition def; if (isTable) def = new FormatTableParameterDefinition(); else def = new FormatListParameterDefinition(); ParameterProcessor processor = new ParameterProcessor(def); TerminatingErrorContext invocationContext = new TerminatingErrorContext(this); parameters.mshParameterList = processor.ProcessParameters(Property, invocationContext); } if (!string.IsNullOrEmpty(this.View)) { // we have a view command line switch if (parameters.mshParameterList.Count != 0) { ReportCannotSpecifyViewAndProperty(); } parameters.viewName = this.View; } }