From: Alon Levy Subject: [PATCH] client/bin/autotest: mention control file in usage message Date: Wed, 7 Sep 2011 13:15:02 +0300 Message-ID: <1315390502-15730-1-git-send-email-alevy@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org Signed-off-by: Alon Levy --- client/bin/autotest | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/bin/autotest b/client/bin/autotest index af521de..c84b771 100755 --- a/client/bin/autotest +++ b/client/bin/autotest @@ -21,7 +21,7 @@ os.environ['AUTODIR'] = autodir os.environ['AUTODIRBIN'] = autodirbin os.environ['PYTHONPATH'] = autodirbin -parser = OptionParser() +parser = OptionParser(usage='Usage: %prog [options] ') parser.add_option("-a", "--args", dest='args', help="additional args to pass to control file") @@ -76,6 +76,7 @@ options, args = parser.parse_args() # Check for a control file if not in prebuild mode. if len(args) != 1 and options.client_test_setup is None: + print "missing control file." usage() drop_caches = global_config.global_config.get_config_value('CLIENT', -- 1.7.6.1