Skip to content

Test fix for #10322

Pre-release
Pre-release
Compare
Choose a tag to compare
@jmarrec jmarrec released this 20 Jun 09:58
5255f92

Fix NREL#10322 - Bump CLI11 from 2.3.2 to 2.4.2

Turns out the issue is that I rely on CLI11's (circa 2.3.2) interpretation of argc/argv, which for linux reads /proc/self/cmdline separated by null terminators.

https://github.com/CLIUtils/CLI11/blob/985a19f3860be0cba87354336f6588494b20111c/include/CLI/impl/Argv_inl.hpp#L141

When you run under rosetta, you end up with a duplicated program path, looks like rosetta is trying to remove itself from the command line but duplicating it. So wheen you call energyplus --help what cmdline has is energyplus energyplus --help.

This bumps to CLI11 to 2.4.2, and moves back to using the actual main argc/argv instead of relying on the static_args that reads /proc/self/cmdline

Note: I suppose I could also have achieved the same thing without bumping to 2.4.2, but might as well do it since there were numeros unicode related fixes as well