Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update readme and package.json

  • Loading branch information...
commit 0d4e3092cd50d91ddae075215ca1c4343025d1d0 1 parent ed0bc8c
@dominictarr authored
Showing with 5 additions and 4 deletions.
  1. +2 −1  package.json
  2. +3 −3 readme.markdown
View
3  package.json
@@ -1,6 +1,6 @@
{ "name": "optimist.sh"
, "version": "0.0.0"
-, "description": ""
+, "description": "optimist for bash"
, "homepage": "http://github.com/dominictarr/optimist.sh"
, "repository":
{ "type": "git"
@@ -8,4 +8,5 @@
, "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
6 readme.markdown
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.