kevva / github-repositories

Get all GitHub repos from a user or an organization
MIT License
37 stars 11 forks source link

Add `repos` and `urls` to the list of boolean CLI flags #8

Closed eush77 closed 8 years ago

eush77 commented 8 years ago

This patch makes --repos and --urls boolean-valued, so that minimist doesn't treat the succeeding token as a value.

Example:

$ github-repositories -sr eush77
User required

What happened is that minimist parsed the command line into the following structure:

{ forks: false,
  f: false,
  sources: true,
  s: true,
  r: 'eush77',
  repos: 'eush77' }

It should rather be { repos: true }. This is what this patch is fixing.

kevva commented 8 years ago

Whoops, must've missed it. Thanks :).