Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wacs.exe --help > help.txt / gives IOException #1080

Closed
hanschou opened this issue Mar 27, 2019 · 2 comments
Closed

wacs.exe --help > help.txt / gives IOException #1080

hanschou opened this issue Mar 27, 2019 · 2 comments
Milestone

Comments

@hanschou
Copy link

hanschou commented Mar 27, 2019

Issue description

When calling wacs.exe with option "--help" and redirecting output to a file or piping to "more" the program exit with error:

C:\tools>wacs.exe --help | more

[INFO] A simple Windows ACMEv2 client (WACS)
[INFO] Software version 2.0.4.227 (RELEASE)
[INFO] IIS not detected
[INFO] Please report issues at https://github.com/PKISharp/win-acme

Main

   --baseuri

Unhandled Exception: System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at PKISharp.WACS.Configuration.ArgumentsParser.ShowArguments()
   at PKISharp.WACS.Services.ArgumentsService.ShowHelp()
   at PKISharp.WACS.Wacs.Start()
   at PKISharp.WACS.Program.Main(String[] args)

Steps to reproduce

wacs.exe --help > help.txt

wacs.exe --help | more

win-acme wacs.exe 2.0.4.227:

Windows Server 2008 R2 Standard SP1:

.NET Framework 4.7.2:

Work around

Wiki Command-line documentation

@WouterTinus
Copy link
Member

I fixed this for the next build, thanks for reporting it!

@WouterTinus
Copy link
Member

Released in 2.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants