8d1488a5ac87b2523b9d8ed925dc51db92bb7d2e
[mono.git] / mcs / tools / mdoc / Mono.Documentation / preserver.cs
1 // Command to preserve member documentation for types that are changing in a subsequent version
2 // By Joel Martinez <joel.martinez@xamarin.com
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using Mono.Options;
7
8 namespace Mono.Documentation
9 {
10         [Obsolete ("This functionality is no longer supported.")]
11         public class MDocPreserve : MDocCommand
12         {
13                 MDocUpdater updater;
14
15                 public MDocPreserve ()
16                 {
17                         updater = new MDocUpdater ();
18                 }
19
20                 public override void Run (IEnumerable<string> args)
21                 {
22                         Message (System.Diagnostics.TraceLevel.Warning, "This functionality is no longer supported, and will be removed in a future release.");
23
24                         string preserveName = string.Empty;
25                         var p = new OptionSet () { { "name=",
26                                         "Root {DIRECTORY} to generate/update documentation.",
27                                         v => preserveName = v
28                                 }
29                         };
30
31                         updater.PreserveTag = preserveName;
32
33                         updater.Run (args);
34                 }
35         }
36 }
37