diff options
| author | PloughPuff <ploughpuff@protonmail.com> | 2019-01-29 13:34:59 +0000 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-01-31 18:56:34 +0100 |
| commit | b5e8cce4cfb5356ca3f46d2cde66b5d0d4084f4d (patch) | |
| tree | ecd2035280244c188e3c8075e97f099671824bf2 /Jellyfin.Server/Program.cs | |
| parent | 211ae30188546e9c652b68b609ab6266ab42a49d (diff) | |
Improved help text and output errors to stderr
Addressed review comments from JustAMan.
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 905cf3aa0..2f1828336 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -49,11 +49,8 @@ namespace Jellyfin.Server args[i] = regex.Replace(args[i], substitution); } - // For CommandLine package, change default behaviour to output errors to stdout (instead of stderr) - var parser = new Parser(config => config.HelpWriter = Console.Out); - // Parse the command line arguments and either start the app or exit indicating error - await parser.ParseArguments<StartupOptions>(args) + await Parser.Default.ParseArguments<StartupOptions>(args) .MapResult( options => StartApp(options), errs => Task.FromResult(0)).ConfigureAwait(false); |
