Skip to content

Commit

Permalink
fix: Fix CLI autogenerated help output
Browse files Browse the repository at this point in the history
Have to specify a writer in order for autohelp to work when not using
default parser.
  • Loading branch information
qdot committed Feb 13, 2019
1 parent 4499092 commit 833206c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Buttplug.Server.CLI/Program.cs
@@ -1,4 +1,5 @@
using CommandLine;
using System;
using CommandLine;

namespace Buttplug.Server.CLI
{
Expand All @@ -11,6 +12,8 @@ private static void Main(string[] args)
{
with.EnableDashDash = true;
with.AutoVersion = false;
with.AutoHelp = true;
with.HelpWriter = Console.Error;
});
parser.ParseArguments<Options>(args).WithParsed(server.RunServer);
}
Expand Down

0 comments on commit 833206c

Please sign in to comment.