Merge pull request #1304 from slluis/mac-proxy-autoconfig
[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         public class MDocPreserve : MDocCommand
11         {
12                 MDocUpdater updater;
13
14                 public MDocPreserve ()
15                 {
16                         updater = new MDocUpdater ();
17                 }
18
19                 public override void Run (IEnumerable<string> args)
20                 {
21                         string preserveName = string.Empty;
22                         var p = new OptionSet () { { "name=",
23                                         "Root {DIRECTORY} to generate/update documentation.",
24                                         v => preserveName = v
25                                 }
26                         };
27
28                         updater.PreserveTag = preserveName;
29
30                         updater.Run (args);
31                 }
32         }
33 }
34