NuxiNL/cloudlibc

Query program name programmatically

mcandre opened this issue · 1 comments

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.

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.