From c27daa564e7cd4926ac3335614b80ea788f686d3 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Fri, 8 Jan 2010 01:08:07 +0100 Subject: Add usage function for printing the help. - update src/dh_xul-ext - update src/install-xpi --- src/dh_xul-ext | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/dh_xul-ext') diff --git a/src/dh_xul-ext b/src/dh_xul-ext index 0702447..725d0b5 100755 --- a/src/dh_xul-ext +++ b/src/dh_xul-ext @@ -184,6 +184,18 @@ def generate_substvars(script_name, xul_apps, package, verbose=False): f.writelines(lines) f.close() +def usage(output): + print >> output, """Usage: %s [options] + +Options: + -p, --package= calculate substvars only for the specified package + +General options: + -h, --help display this help and exit + -v, --verbose print more information + +See %s(1) for more info.""" % (sys.argv[0], os.path.basename(sys.argv[0])) + if __name__ == "__main__": try: long_opts = ["help", "package", "verbose"] -- cgit v1.2.3