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

Plush command-line option parser #111

Open
maximecb opened this issue Oct 13, 2017 · 0 comments
Open

Plush command-line option parser #111

maximecb opened this issue Oct 13, 2017 · 0 comments

Comments

@maximecb
Copy link
Member

ZetaVM has an option parser, written in C++, which was contributed by ashwanidausodia. This option parser handles the command-line options of the VM itself.

However, programs running on ZetaVM can receive their own options, eg:

# Options after the double dash are passed to the program being run by ZetaVM
./zeta myprogram -- opt1 ... optN

Currently, the options passed to programs running on ZetaVM are handled in an ad-hoc manner. See this program for an example.

It would be desirable for us to provide an std/options library to parse command-line arguments. This library should be written in Plush. We may want to try and have an API similar to the C++ option parser in ZetaVM, for consistency, though this isn't strictly necessary.

Note: there are already a number of useful functions in the std/string and std/array libraries which may be useful in implementing the option parser.

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

No branches or pull requests

1 participant