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

Improvements to options parsing #7

Open
wyattbiker opened this issue Aug 19, 2015 · 0 comments
Open

Improvements to options parsing #7

wyattbiker opened this issue Aug 19, 2015 · 0 comments

Comments

@wyattbiker
Copy link

  1. Ability to make options required:
    Example: the --tel option is required (not just the argument)
    myapp.js --tel=555-555-1234

  2. Also required ARGs should remove 1st = and alltrim(spaces) of argument
    e.g. myapp.js tel: '=555-555-1234'

  3. Also a required ARG should not take the next option as an ARG
    e.g.

myapp.s --tel -v

Currently it accepts it as an argument shows {tel: '-v'}
of course this could cause an issue if someone wants an argument that starts with '-' or '--'
so maybe it can be escaped (or they can use =)
E.g. myapp.js --tel=-v

Thanks!

@jiangmiao jiangmiao reopened this Mar 22, 2018
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