tExit after help - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit b3703de27f04b5bed36078d3854dfbc4b9e930d1
(DIR) parent b8f7bbdac37deab5cd6fac194664a8b77e35fb83
(HTM) Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Tue, 24 Sep 2013 16:36:06 +0200
Exit after help
Diffstat:
M instagram | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/instagram b/instagram
t@@ -41,7 +41,7 @@ while getopts ":htmud:g:s:" opt; do
g) GIF=$OPTARG ;;
s) SCREEN=$OPTARG ;;
u) UPLOAD=1 ;;
- h) usage;;
+ h) usage; exit 0;;
?) echo "invalid option: -$OPTARG"; exit 1 ;;
esac
done