From 3169b4cb8688d257d7207c02a059c42f0cad9d4c Mon Sep 17 00:00:00 2001 From: sole Date: Tue, 30 Nov 2010 17:39:25 +0000 Subject: [PATCH] buid.py: Show help message when no arguments are specified --- utils/build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/build.py b/utils/build.py index 637fa077..da429293 100644 --- a/utils/build.py +++ b/utils/build.py @@ -9,6 +9,7 @@ except ImportError: import os import tempfile +import sys def merge(files): @@ -398,6 +399,11 @@ def parse_args(): args, remainder = parser.parse_args() + # If no arguments have been passed, show the help message and exit + if len(sys.argv) == 1: + parser.print_help() + sys.exit(1) + return args