cacjs / cac

Simple yet powerful framework for building command-line apps.
MIT License
2.65k stars 104 forks source link

Suggestion: use Deno's std/flags to parse arguments #71

Open drawveloper opened 4 years ago

drawveloper commented 4 years ago

Issue Type

Info

I see this project currently uses mri (https://www.npmjs.com/package/mri) to parse the arguments.

I suggest we discuss using the standard flags (https://deno.land/std/flags/) module when running on Deno so it behaves consistently with other cli's created in deno.

egoist commented 4 years ago

But that would make CAC behave differently on different platform.

Anyways I plan to write our own cli parser instead of using mri, so I can try to make it as close to Deno's as possible.

Currently the only difference I noticed is that Deno parses -n5 to {n:5} while we parse it to {n:true,5:true}.