Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
fix(cli): Ensure apiKey option is parsed as a string
Browse files Browse the repository at this point in the history
If the apiKey was entirely numbers (possible, but improbable with a 32 byte hex string) then it
would be incorrectly parsed the arg parser as an integer and fail validation.
  • Loading branch information
bengourley committed Jan 7, 2019
1 parent 2adfff0 commit e969cd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const cli = meow(`
},
string: [
'app-version',
'api-key',
],
boolean: [
'overwrite',
Expand Down

0 comments on commit e969cd7

Please sign in to comment.