Commits

Panayiotis Lipiridis committed 076a8a5

Build script minifies by default when no arguments provided

  • Participants
  • Parent commits 0d60048

Comments (0)

Files changed (1)

File main/build.py

 ################################################################################
 # Options
 ################################################################################
-if len(sys.argv) == 1:
-  sys.argv.append('-h')
-
 parser = argparse.ArgumentParser()
 parser.add_argument('-w', '--watch', dest='watch', action='store_true',
     help='watch files for changes when running the development web server',
     help='recompiles files when running the development web server',
   )
 parser.add_argument('-m', '--minify', dest='minify', action='store_true',
-    help='compiles files into minified version before deploying',
+    help='''compiles files into minified version before deploying, identical to
+    calling %s with no arguments''' % __file__,
   )
 args = parser.parse_args()
 
   compile_all_dst()
   print_out('DONE')
 
-if args.minify:
+if args.minify or len(sys.argv) == 1:
   print_out('MINIFY')
   clean_files()
   make_lib_zip(force=True)