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

Rename option #74

Closed
stevenvachon opened this issue Dec 27, 2017 · 1 comment
Closed

Rename option #74

stevenvachon opened this issue Dec 27, 2017 · 1 comment

Comments

@stevenvachon
Copy link

It'd be nice if we could do this:

const args = commandLineArgs([
    { name: 'opt-name', type: Boolean, rename: 'optName' }
]);

console.log(args);
//-> { optName: true }

It would help make our code cleaner, by not needing args['opt-name'] nor custom code to replace properties.

@75lb
Copy link
Owner

75lb commented Dec 27, 2017

duplicate of #57

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