本文整理汇总了C#中Options.WriteOptionDescriptions方法的典型用法代码示例。如果您正苦于以下问题:C# Options.WriteOptionDescriptions方法的具体用法?C# Options.WriteOptionDescriptions怎么用?C# Options.WriteOptionDescriptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options.WriteOptionDescriptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowHelp
private static void ShowHelp(Options optionSet)
{
Console.WriteLine("Test specification runner for Simple.Testing");
Console.WriteLine();
Console.WriteLine("Options:");
optionSet.WriteOptionDescriptions(Console.Out);
}
示例2: ShowHelp
private static void ShowHelp(Options p)
{
var sw = new StringWriter();
sw.WriteLine("Usage: updateDb.exe -p password -v version mindtouch.deki.dll");
p.WriteOptionDescriptions(sw);
Console.WriteLine(sw.ToString());
}
示例3: ShowHelp
static void ShowHelp(Options options, string message = "")
{
if (!string.IsNullOrWhiteSpace(message))
{
Console.WriteLine(message);
Console.WriteLine("");
}
Console.WriteLine("Stitch [destination] options");
Console.WriteLine("");
options.WriteOptionDescriptions(Console.Out);
}
示例4: ShowHelp
/// <summary>
/// Print help
/// </summary>
/// <param name="p">options defined in type Options class</param>
private static void ShowHelp(Options opts) {
var sw = new StringWriter();
sw.WriteLine("Usage: mindtouch.pagegrants.exe -s site.mindtouch.us -u admin -p password config.xml");
opts.WriteOptionDescriptions(sw);
Console.WriteLine(sw.ToString());
}