Permalink
Browse files

patched cli

  • Loading branch information...
1 parent 5edf98c commit f20534ff98913f1f7f70668d14906a668a02c80c @niftylettuce niftylettuce committed Dec 24, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Readme.md
  2. +2 −2 bin/pantone
View
@@ -20,13 +20,13 @@ Let's try to find the nearest PMS color to [Teelaunch's][2] blue in hex:
![Teelaunch Logo](https://d33304ifi1rp4s.cloudfront.net/img/teelaunch-logo.png "Teelaunch Logo")
```bash
-pantone -hex 2A70AE
+pantone --hex 2A70AE
```
Or we could use the rgb values:
```bash
-pantone -rgb 42,112,174
+pantone --rgb 42,112,174
```
Output in table format on command line:
View
@@ -12,8 +12,8 @@ function range(val) {
program
.version(version)
- .option('-rgb, --rgb <r>,<g>,<b>', 'lookup using rgb values', range)
- .option('-hex, --hex <000000>', 'lookup using hex value')
+ .option('--rgb <r>,<g>,<b>', 'lookup using rgb values', range)
+ .option('--hex <000000>', 'lookup using hex value')
.parse(process.argv)
program.hex = program.hex || ''

0 comments on commit f20534f

Please sign in to comment.