node2nix icon indicating copy to clipboard operation
node2nix copied to clipboard

No argument validation check.

Open wizzup opened this issue 6 years ago • 2 comments

It seem like node2nix don't check for invalid argument.

This could be the source of confusing if there is any typo on argument, for example, --deopment instead of --develpment.

$ node2nix --version
node2nix 1.6.0

$ node2nix --whatever --developmento
fetching local directory: ./. from .

wizzup avatar Apr 08 '19 10:04 wizzup

Agreed. I probably need to use a better option parsing library to make this happen. I'll investigate (hopefully) soon.

svanderburg avatar Jun 05 '19 21:06 svanderburg

I just merged a pull request that seems to fix this: b562936d7861a6601cb0a680893ff5772aa5ca5b

svanderburg avatar Nov 14 '21 14:11 svanderburg