27 lines
No EOL
1.1 KiB
C#
27 lines
No EOL
1.1 KiB
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System.Linq;
|
|
using Microsoft.DotNet.Cli.CommandLine;
|
|
using LocalizableStrings = Microsoft.DotNet.Tools.Clean.LocalizableStrings;
|
|
|
|
namespace Microsoft.DotNet.Cli
|
|
{
|
|
internal static class CleanCommandParser
|
|
{
|
|
public static Command Clean() =>
|
|
Create.Command(
|
|
"clean",
|
|
LocalizableStrings.AppFullName,
|
|
Accept.ZeroOrMoreArguments(),
|
|
CommonOptions.HelpOption(),
|
|
Create.Option("-o|--output",
|
|
LocalizableStrings.CmdOutputDirDescription,
|
|
Accept.ExactlyOneArgument()
|
|
.With(name: LocalizableStrings.CmdOutputDir)
|
|
.ForwardAsSingle(o => $"/p:OutputPath={o.Arguments.Single()}")),
|
|
CommonOptions.FrameworkOption(),
|
|
CommonOptions.ConfigurationOption(),
|
|
CommonOptions.VerbosityOption());
|
|
}
|
|
} |