Query program name programmatically
mcandre opened this issue · 1 comments
mcandre commented
Lacking the traditional int argc, char **argv
entrypoint parameters for querying command line arguments, could program.h provide another way to obtain the name of the program? This is often useful for displaying accurate help command syntax for downstream users.
EdSchouten commented
I think the answer to this question is somewhat similar to my response to NuxiNL/cloudabi-utils#11. Something like this could be built on top of what's there already. The argdata could be used to communicate this information to the process.
Let's close this issue to keep the discussion centralized.