Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05:00

38 lines
909 B
C#

// Command to preserve member documentation for types that are changing in a subsequent version
// By Joel Martinez <joel.martinez@xamarin.com
using System;
using System.Collections.Generic;
using System.Linq;
using Mono.Options;
namespace Mono.Documentation
{
[Obsolete ("This functionality is no longer supported.")]
public class MDocPreserve : MDocCommand
{
MDocUpdater updater;
public MDocPreserve ()
{
updater = new MDocUpdater ();
}
public override void Run (IEnumerable<string> args)
{
Message (System.Diagnostics.TraceLevel.Warning, "This functionality is no longer supported, and will be removed in a future release.");
string preserveName = string.Empty;
var p = new OptionSet () { { "name=",
"Root {DIRECTORY} to generate/update documentation.",
v => preserveName = v
}
};
updater.PreserveTag = preserveName;
updater.Run (args);
}
}
}