]> err.no Git - dak/commitdiff
Rename process-commands.py to process_commands.py.
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 19 Sep 2012 10:44:17 +0000 (12:44 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Wed, 19 Sep 2012 10:47:35 +0000 (12:47 +0200)
dak/process_commands.py [moved from dak/process-commands.py with 93% similarity]

similarity index 93%
rename from dak/process-commands.py
rename to dak/process_commands.py
index 9bc2d3f1b5691e50bf4f333f3f3efa85c1bfe42b..7e013dcd0b93dbdff882cbf9db84235be5514863 100644 (file)
@@ -28,7 +28,7 @@ from daklib.fstransactions import FilesystemTransaction
 from daklib.utils import find_next_free
 
 def usage():
-    print """Usage: dak command <command-file>...
+    print """Usage: dak process-commands [-d <directory>] [<command-file>...]
 
 process command files
 """
@@ -41,9 +41,9 @@ def main(argv=None):
                  ('d', 'directory', 'Process-Commands::Options::Directory', 'HasArg')]
 
     cnf = Config()
-    cnf['Command::Options::Dummy'] = ''
+    cnf['Process-Command::Options::Dummy'] = ''
     filenames = apt_pkg.parse_commandline(cnf.Cnf, arguments, argv)
-    options = cnf.subtree('Command::Options')
+    options = cnf.subtree('Process-Commands::Options')
 
     if 'Help' in options or (len(filenames) == 0 and 'Directory' not in options):
         usage()