]> git.decadent.org.uk Git - dak.git/blobdiff - natalie.py
make claire use the codename (potato) in the path to files rather thanthe suite name...
[dak.git] / natalie.py
index 8206ddfe8715705457f1432def9614a9559fe1e7..e92d6d7d676bdc97355ea7d19a4740ceedbf41db 100755 (executable)
@@ -2,7 +2,7 @@
 
 # Manipulate override files
 # Copyright (C) 2000  James Troup <james@nocrew.org>
-# $Id: natalie.py,v 1.1 2001-01-10 05:58:26 troup Exp $
+# $Id: natalie.py,v 1.2 2001-01-27 00:09:36 troup Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -31,6 +31,25 @@ projectB = None;
 
 ################################################################################
 
+def usage (exit_code):
+    print """Usage: natalie.py [OPTIONS]
+  -D, --debug=VALUE        debug
+  -h, --help               this help
+  -V, --version            retrieve version
+  -c, --component=CMPT     list/set overrides by component
+                                  (contrib,*main,non-free)
+  -s, --suite=SUITE        list/set overrides by suite 
+                                  (experimental,stable,testing,*unstable)
+  -t, --type=TYPE          list/set overrides by type
+                                  (*deb,dsc,udeb)
+  -S, --set                set overrides from stdin
+  -l, --list               list overrides on stdout
+
+ starred (*) values are default"""
+    sys.exit(exit_code)
+
+################################################################################
+
 def init():
     global projectB;
     
@@ -194,6 +213,9 @@ def main ():
                  ('t',"type","Natalie::Options::Type", "HasArg")];
     file_list = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
 
+    if Cnf["Natalie::Options::Help"]:
+        usage(0);
+
     init();
 
     action = None;