Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query program name programmatically #27

Closed
mcandre opened this issue Dec 30, 2018 · 1 comment
Closed

Query program name programmatically #27

mcandre opened this issue Dec 30, 2018 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Dec 30, 2018

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants