Skip to content
Browse files

Better help script

  • Loading branch information...
1 parent d17d6cf commit 0c3a2efe68e856c847a6e027fa2b71b303f5f9e1 @davglass davglass committed Apr 12, 2012
Showing with 13 additions and 4 deletions.
  1. +8 −4 Makefile
  2. +5 −0 scripts/help.sh
View
12 Makefile
@@ -4,18 +4,22 @@ all:
version:
./scripts/versions.js
+help:
+ ./scripts/help.sh
+
doc:
- rm -rRf ./output/*
- ./lib/cli.js --help &> ./docs/args/partials/help.mustache
./node_modules/.bin/selleck --out ./output/
+clean:
+ rm -rRf ./output/*
+
api:
./lib/cli.js
-docs: doc api
+docs: clean help doc api
test:
./scripts/prep.sh
./node_modules/.bin/yuitest ./tests/parser.js
-.PHONY: docs
+.PHONY: docs clean
View
5 scripts/help.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cd "$(dirname "$0")"
+
+../lib/cli.js --help 2> ../docs/args/partials/help.mustache

0 comments on commit 0c3a2ef

Please sign in to comment.
Something went wrong with that request. Please try again.