@@ -49,12 +49,12 @@ class CommandLineOptions
49
49
public const string VerbPublishMetadata = "publish-edmx" ;
50
50
51
51
public const string VerbGenerateDocs = "generate-docs" ;
52
-
53
- [ VerbOption ( VerbPrint , HelpText = "Print files, resources, and methods discovered in the documentation." ) ]
52
+
53
+ [ VerbOption ( VerbPrint , HelpText = "Print files, resources, and methods discovered in the documentation." ) ]
54
54
public PrintOptions PrintVerbOptions { get ; set ; }
55
55
56
56
[ VerbOption ( VerbCheckLinks , HelpText = "Verify links in the documentation aren't broken." ) ]
57
- public BasicCheckOptions CheckLinksVerb { get ; set ; }
57
+ public CheckLinkOptions CheckLinksVerb { get ; set ; }
58
58
59
59
[ VerbOption ( VerbDocs , HelpText = "Check for errors in the documentation (resources + examples)." ) ]
60
60
public BasicCheckOptions CheckDocsVerb { get ; set ; }
@@ -65,19 +65,19 @@ class CommandLineOptions
65
65
[ VerbOption ( VerbService , HelpText = "Check for errors between the documentation and service." ) ]
66
66
public CheckServiceOptions CheckServiceVerb { get ; set ; }
67
67
68
- [ VerbOption ( VerbPublish , HelpText = "Publish a version of the documentation, optionally converting it into other formats." ) ]
68
+ [ VerbOption ( VerbPublish , HelpText = "Publish a version of the documentation, optionally converting it into other formats." ) ]
69
69
public PublishOptions PublishVerb { get ; set ; }
70
70
71
- [ VerbOption ( VerbPublishMetadata , HelpText = "Publish or update metadata based on information in the docset." ) ]
71
+ [ VerbOption ( VerbPublishMetadata , HelpText = "Publish or update metadata based on information in the docset." ) ]
72
72
public PublishMetadataOptions EdmxPublishVerb { get ; set ; }
73
73
74
- [ VerbOption ( VerbMetadata , HelpText = "Check service CSDL metadata against documentation." ) ]
74
+ [ VerbOption ( VerbMetadata , HelpText = "Check service CSDL metadata against documentation." ) ]
75
75
public CheckMetadataOptions CheckMetadataVerb { get ; set ; }
76
76
77
- [ VerbOption ( VerbGenerateDocs , HelpText = "Generate documentation from an CSDL model" ) ]
77
+ [ VerbOption ( VerbGenerateDocs , HelpText = "Generate documentation from an CSDL model" ) ]
78
78
public GenerateDocsOptions GenerateDocsVerb { get ; set ; }
79
79
80
- [ VerbOption ( VerbAbout , HelpText = "Print about information for this application." ) ]
80
+ [ VerbOption ( VerbAbout , HelpText = "Print about information for this application." ) ]
81
81
public BaseOptions AboutVerb { get ; set ; }
82
82
83
83
[ HelpVerbOption ]
@@ -90,7 +90,7 @@ public string GetUsage(string verb)
90
90
class BaseOptions
91
91
{
92
92
93
- [ Option ( "log" , HelpText = "Write the console output to file." ) ]
93
+ [ Option ( "log" , HelpText = "Write the console output to file." ) ]
94
94
public string LogFile { get ; set ; }
95
95
96
96
[ Option ( "ignore-warnings" , HelpText = "Ignore warnings as errors for pass rate." ) ]
@@ -99,10 +99,10 @@ class BaseOptions
99
99
[ Option ( "silence-warnings" , HelpText = "Don't print warnings to the screen or consider them errors" ) ]
100
100
public bool SilenceWarnings { get ; set ; }
101
101
102
- [ Option ( "appveyor-url" , HelpText = "Specify the AppVeyor Build Worker API URL for output integration" ) ]
102
+ [ Option ( "appveyor-url" , HelpText = "Specify the AppVeyor Build Worker API URL for output integration" ) ]
103
103
public string AppVeyorServiceUrl { get ; set ; }
104
104
105
- [ Option ( "ignore-errors" , HelpText = "Prevent errors from generating a non-zero return code." ) ]
105
+ [ Option ( "ignore-errors" , HelpText = "Prevent errors from generating a non-zero return code." ) ]
106
106
public bool IgnoreErrors { get ; set ; }
107
107
108
108
[ Option ( "parameters" , HelpText = "Specify additional page variables that are used by the publishing engine. URL encoded: key=value&key2=value2." ) ]
@@ -131,7 +131,7 @@ public Dictionary<string, string> PageParameterDict {
131
131
}
132
132
133
133
#if DEBUG
134
- [ Option ( "debug" , HelpText = "Launch the debugger before doing anything interesting" ) ]
134
+ [ Option ( "debug" , HelpText = "Launch the debugger before doing anything interesting" ) ]
135
135
public bool AttachDebugger { get ; set ; }
136
136
#endif
137
137
@@ -183,16 +183,16 @@ class CheckMetadataOptions : DocSetOptions
183
183
184
184
class PrintOptions : DocSetOptions
185
185
{
186
- [ Option ( "files" , HelpText = "Print the files discovered as part of the documentation" ) ]
186
+ [ Option ( "files" , HelpText = "Print the files discovered as part of the documentation" ) ]
187
187
public bool PrintFiles { get ; set ; }
188
-
189
- [ Option ( "resources" , HelpText = "Print the resources discovered in the documentation" ) ]
188
+
189
+ [ Option ( "resources" , HelpText = "Print the resources discovered in the documentation" ) ]
190
190
public bool PrintResources { get ; set ; }
191
-
192
- [ Option ( "methods" , HelpText = "Print the methods discovered in the documentation." ) ]
191
+
192
+ [ Option ( "methods" , HelpText = "Print the methods discovered in the documentation." ) ]
193
193
public bool PrintMethods { get ; set ; }
194
194
195
- [ Option ( "accounts" , HelpText = "Print the list of accounts discovered in the documentation." ) ]
195
+ [ Option ( "accounts" , HelpText = "Print the list of accounts discovered in the documentation." ) ]
196
196
public bool PrintAccounts { get ; set ; }
197
197
198
198
public override bool HasRequiredProperties ( out string [ ] missingArguments )
@@ -212,6 +212,11 @@ public override bool HasRequiredProperties(out string[] missingArguments)
212
212
}
213
213
}
214
214
215
+ class CheckLinkOptions : BasicCheckOptions {
216
+ [ Option ( "orphan-page-warning" , HelpText = "Print a warning for each page without any incoming links." ) ]
217
+ public bool IncludeOrphanPageWarning { get ; set ; }
218
+ }
219
+
215
220
class BasicCheckOptions : DocSetOptions
216
221
{
217
222
[ Option ( 'm' , "method" , HelpText = "Name of the method to test. If omitted, all defined methods are tested." , MutuallyExclusiveSet = "fileOrMethod" ) ]
@@ -392,6 +397,9 @@ class PublishMetadataOptions : DocSetOptions
392
397
[ Option ( "source" , HelpText = "Source metadata input file." ) ]
393
398
public string SourceMetadataPath { get ; set ; }
394
399
400
+ [ Option ( "merge-with" , HelpText = "Specify a second metadata input file to merge with the first." ) ]
401
+ public string SecondSourceMetadataPath { get ; set ; }
402
+
395
403
[ Option ( "format" , DefaultValue = MetadataFormat . Default , HelpText = "Specify the input and output formats for metadata." ) ]
396
404
public MetadataFormat DataFormat { get ; set ; }
397
405
@@ -428,6 +436,7 @@ public CsdlWriterOptions GetOptions()
428
436
Sort = SortOutput ,
429
437
OutputDirectoryPath = OutputDirectory ,
430
438
SourceMetadataPath = SourceMetadataPath ,
439
+ MergeWithMetadataPath = SecondSourceMetadataPath ,
431
440
Namespaces = Namespaces ? . Split ( new char [ ] { ';' } , StringSplitOptions . RemoveEmptyEntries ) ,
432
441
TransformOutput = TransformOutput ,
433
442
DocumentationSetPath = DocumentationSetPath ,
0 commit comments