Xenia: [Config] Xenia does not print help when required

Created on 3 Dec 2019  路  3Comments  路  Source: xenia-project/xenia

Xenia doesn't print help to command line, for example when running xenia.exe --help

This was probably an oversight when switching from gflags to our own config system see comment below

output of latest master:

D:\mods-n-stuff\Xbox
位  .\xenia.exe --help
D:\mods-n-stuff\Xbox
位
bug

All 3 comments

This issue was present before gflags was removed on Windows. The intended behaviour has worked fine in Linux since I first tried it (probably some time in 2017) and still works now. This is a Windows issue.

It happens because the PE on windows is built with IMAGE_SUBSYSTEM_WINDOWS_GUI set, which indicates it's a GUI application.

Cmd doesn't wait for the output of a gui application, it's just windows behavior. The same can be observed when you launch calc.exe or notepad.exe

There are possible workarounds (most applications use 2 executables to work around the issue), but they're not implemented in Xenia.

If you want the help output in windows, you can pipe the output to a file, or use mingw/git bash/some other terminal application instead of cmd (they do display the output).

More info:
https://stackoverflow.com/questions/54536/win32-gui-app-that-writes-usage-text-to-stdout-when-invoked-as-app-exe-help
https://devblogs.microsoft.com/oldnewthing/20090101-00/?p=19643

Interesting. I might see if I can apply one of those solutions to xenia

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zerr10 picture zerr10  路  3Comments

thx3ever picture thx3ever  路  3Comments

thx4ever picture thx4ever  路  3Comments

emoose picture emoose  路  3Comments

TotalCaesar659 picture TotalCaesar659  路  4Comments