travitch / build-bom

Dynamically discover the commands used to create a piece of software
Apache License 2.0
45 stars 8 forks source link

Better help for inject-argument option #76

Closed kquick closed 1 month ago

kquick commented 1 month ago

This is useful because the actual help output shown is:

      --inject-argument <INJECT_ARGUMENTS>
          Inject the given argument into the clang argument list when generating bitcode

but when the user attempts to use it in that fashion, build-bom tries to interpret the injected argument itself, or if quotes are used, the quotes are persisted, escaped to the clang invocation, which is invalid. Using the = instead of the space is the way to avoid these problems, but the default help output from the clap library does not display that format.