Permalink
Browse files

update readme and package.json

  • Loading branch information...
1 parent ed0bc8c commit 0d4e3092cd50d91ddae075215ca1c4343025d1d0 @dominictarr committed Dec 7, 2011
Showing with 5 additions and 4 deletions.
  1. +2 −1 package.json
  2. +3 −3 readme.markdown
View
@@ -1,11 +1,12 @@
{ "name": "optimist.sh"
, "version": "0.0.0"
-, "description": ""
+, "description": "optimist for bash"
, "homepage": "http://github.com/dominictarr/optimist.sh"
, "repository":
{ "type": "git"
, "url": "https://github.com/dominictarr/optimist.sh.git" }
, "dependencies": {}
, "devDependencies": {}
, "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://bit.ly/dominictarr)"
+, "bin": { "optimist.sh": "./optimist.sh" }
, "scripts": { "test": "meta-test test/*.js" } }
View
@@ -1,6 +1,6 @@
# optimist.sh
-behaves just like substack/optimist but is for bash instead of nodejs
+bash port of substack/optimist
```
#source optimist.sh into your bash script
@@ -10,7 +10,7 @@ behaves just like substack/optimist but is for bash instead of nodejs
source the output back into this script.
it will create env vars with the prefix `argv_`
-optionally set a different prefix `. <(PREFIX whatever_ argv "$@")`
+optionally set a different prefix `. <(PREFIX=whatever_ argv "$@")`
```
. <(argv "$@")
@@ -23,7 +23,7 @@ for key in ${!argv_*}; do
done
```
-supports a bunch of arguments
+supports a bunch of arguments styles!
```
./example.sh arg1 --key1 value1 --key2=value2 --no-falsey --truthy -t -f -- arg2 arg3

0 comments on commit 0d4e309

Please sign in to comment.