Namdak Tonpa 6 years ago
parent
commit
e46a4e5f02
4 changed files with 4 additions and 3 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 1 1
      src/mad.erl
  4. 2 1
      src/mad_static.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"a4074f").
+-define(VERSION,"484403").

BIN
mad


+ 1 - 1
src/mad.erl

@@ -71,5 +71,5 @@ help()            -> info("MAD Manage Dependencies ~s~n",[?VERSION]),
                      info("    params = []  | command [options] params ~n"),
                      info("   command = app [web|mqtt] <name> | deps | clean | compile | strip~n"),
                      info("           | bundle [beam|script] <name> | get <repo> | up [name] ~n"),
-                     info("           | start | stop | attach | repl | static [watch|min] ~n"),
+                     info("           | start | stop | attach | repl | static <min> ~n"),
                      return(false).

+ 2 - 1
src/mad_static.erl

@@ -12,7 +12,8 @@ main(_Config, ["min"]) ->
          {_,0,_} -> {ok,static};
          {_,_,_} -> mad:info("minifyjs not installed. try `npm install -g uglify`~n"),
                     {error,"Minifier."}
-    end.
+    end;
+main(_, _) -> {error,"Arguments needed."}.
 
 replace(S,A,B) -> re:replace(S,A,B,[global,{return,list}]).