From a87669161eb7b6c2231083526efd7ce715b25c58 Mon Sep 17 00:00:00 2001 From: Erik Hahn Date: Thu, 30 Jul 2009 22:37:07 +0200 Subject: [PATCH] Add usage string --- ordnung.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ordnung.py b/ordnung.py index cc33b72..a039dbd 100644 --- a/ordnung.py +++ b/ordnung.py @@ -32,7 +32,8 @@ def newpath(file, target, pattern): def main(): # Handle arguments - parser = OptionParser() + usage = "Usage: %prog [options] directory pattern" + parser = OptionParser(usage=usage) parser.add_option("-r", "--recursive", action="store_true", dest="recursive", help="also move/copy files from sub-directories", default=False) parser.add_option("-t", "--target", dest="targetpath", metavar="TARGET", -- 2.11.4.GIT