From: Christian KarriƩ Date: Mon, 26 May 2014 14:53:26 +0000 (+0200) Subject: Better usage infos for sat_xml_scan.py X-Git-Tag: v4.1~2047^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a12c39d685364ced525cfcf953ba15438429f7b;p=thirdparty%2Ftvheadend.git Better usage infos for sat_xml_scan.py --- diff --git a/support/sat_xml_scan.py b/support/sat_xml_scan.py index 815496a46..cbfc48259 100755 --- a/support/sat_xml_scan.py +++ b/support/sat_xml_scan.py @@ -88,7 +88,11 @@ def parse_sat(node): fp.close() if len(sys.argv) < 3: - print('Usage: %s satellite.xml /output/directory/path') + if len(sys.argv) != 1: + usage = 'python sat_xml_scan.py' + else: + usage = sys.argv[0] + print('Usage: %s satellite.xml /output/directory/path' % usage) sys.exit(0) DIR = sys.argv[2]