public static Command List() => Create.Command( "list", LocalizableStrings.NetListCommand, Accept.ZeroOrOneArgument() .With( name: CommonLocalizableStrings.SolutionOrProjectArgumentName, description: CommonLocalizableStrings.SolutionOrProjectArgumentDescription) .DefaultToCurrentDirectory(), ListPackageReferencesCommandParser.ListPackageReferences(), ListProjectToProjectReferencesCommandParser.ListProjectToProjectReferences(), CommonOptions.HelpOption());
public ListCommand() : base( name: "list", help: LocalizableStrings.NetListCommand, options: new Option[] { CommonOptions.HelpOption(), ListPackageReferencesCommandParser.ListPackageReferences(), ListProjectToProjectReferencesCommandParser.ListProjectToProjectReferences(), }, arguments: Accept.ZeroOrOneArgument() .With( name: CommonLocalizableStrings.SolutionOrProjectArgumentName, description: CommonLocalizableStrings.SolutionOrProjectArgumentDescription) .DefaultToCurrentDirectory()) { }