max-mapper / nugget

minimalist wget clone written in node. HTTP GET files and downloads them into the current directory
BSD 3-Clause "New" or "Revised" License
172 stars 30 forks source link

Use minimist to create alias and default arguments #19

Open bigtimebuddy opened 7 years ago

bigtimebuddy commented 7 years ago

Love the module, I'm a big fan. Thanks for creating and supporting it.

I have a pretty simple PR that updates the bin entry point to take advantage of minimist's options for defining aliases, defaults, booleans and strings. It uses minimist's parse arguments return instead of creating a new object. Also, it's nicer to have these things be explicitly declared.

If you're happy with the existing arguments/options setup, please feel free to close.

bigtimebuddy commented 7 years ago

Ping