Permalink
Browse files

Fixed `mad file`

  • Loading branch information...
1 parent 2ff621e commit 4b69c1433e707e842ca6e5586274cf3b65574d69 @tj committed Apr 14, 2012
Showing with 10 additions and 8 deletions.
  1. +10 −8 bin/mad
View
18 bin/mad
@@ -2,13 +2,6 @@
VERSION="0.0.1"
-# file required
-
-if test $# -eq 0; then
- echo "<file> required"
- exit
-fi
-
#
# Display <file>
#
@@ -26,14 +19,23 @@ display() {
| less -R
}
+# file required
+
+if test $# -eq 0; then
+ echo "<file> required"
+ exit
+fi
+
# parse args
case $1 in
-v|--version)
echo $VERSION
- exit
;;
-h|--help|help)
display $(dirname $0)/../share/mad/mad.md
;;
+ *)
+ display $1
+ ;;
esac

0 comments on commit 4b69c14

Please sign in to comment.