chipsalliance / UHDM

Universal Hardware Data Model. A complete modeling of the IEEE SystemVerilog Object Model with VPI Interface, Elaborator, Serialization, Visitor and Listener. Used as a compiled interchange format in between SystemVerilog tools. Compiles on Linux gcc, Windows msys2-gcc & msvc, OsX
Apache License 2.0
202 stars 40 forks source link

make utility executables exit with error code 0 when running --help #1001

Closed timkpaine closed 1 year ago

timkpaine commented 1 year ago

It can be difficult to determine that all linking has been done correctly in a build environment by just looking at the generated libraries. A common pattern I've been seeing (e.g. on homebrew, conda, etc) is to run my-executable --help which seems to be expected to not have an error exit code. A quick survey of CLIs on my box confirms this pattern >50% of the time, so I propose we use it here. This is also the behavior of the surelog command.