ensure-dirs: Fix program name on usage screen
authorMichael Hanselmann <hansmi@google.com>
Wed, 17 Oct 2012 15:32:15 +0000 (17:32 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 18 Oct 2012 10:43:39 +0000 (12:43 +0200)
No string replacements are used, so doubling of the percent sign is not
necessary.

Before: Usage: %ensure-dirs [--full-run]
After: Usage: ensure-dirs [--full-run]

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/tools/ensure_dirs.py

index 868e36c..4c4e7a1 100644 (file)
@@ -224,7 +224,7 @@ def ParseOptions():
   """
   program = os.path.basename(sys.argv[0])
 
-  parser = optparse.OptionParser(usage="%%prog [--full-run]",
+  parser = optparse.OptionParser(usage="%prog [--full-run]",
                                  prog=program)
   parser.add_option(cli.DEBUG_OPT)
   parser.add_option(cli.VERBOSE_OPT)