Skip to content

Commit

Permalink
Fixed mad file
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 14, 2012
1 parent 2ff621e commit 4b69c14
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions bin/mad
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

VERSION="0.0.1"

# file required

if test $# -eq 0; then
echo "<file> required"
exit
fi

#
# Display <file>
#
Expand All @@ -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.