2017-03-06 11:57:19 -08:00
|
|
|
// 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.
|
|
|
|
|
2017-03-09 18:16:20 -08:00
|
|
|
using System.Linq;
|
2017-03-06 11:57:19 -08:00
|
|
|
using Microsoft.DotNet.Cli.CommandLine;
|
2017-03-09 18:16:20 -08:00
|
|
|
using LocalizableStrings = Microsoft.DotNet.Tools.Clean.LocalizableStrings;
|
2017-03-06 11:57:19 -08:00
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli
|
|
|
|
{
|
|
|
|
internal static class CleanCommandParser
|
|
|
|
{
|
|
|
|
public static Command Clean() =>
|
2017-03-09 18:16:20 -08:00
|
|
|
Create.Command(
|
|
|
|
"clean",
|
|
|
|
".NET Clean Command",
|
|
|
|
Accept.ZeroOrMoreArguments,
|
|
|
|
CommonOptions.HelpOption(),
|
|
|
|
Create.Option("-o|--output",
|
|
|
|
"Directory in which the build outputs have been placed.",
|
|
|
|
Accept.ExactlyOneArgument
|
|
|
|
.With(name: "OUTPUT_DIR")
|
|
|
|
.ForwardAs(o => $"/p:OutputPath={o.Arguments.Single()}")),
|
|
|
|
CommonOptions.FrameworkOption(),
|
|
|
|
CommonOptions.ConfigurationOption(),
|
|
|
|
CommonOptions.VerbosityOption());
|
2017-03-06 11:57:19 -08:00
|
|
|
}
|
|
|
|
}
|