#!/usr/bin/env python
# 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 $
+# Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
+# $Id: natalie.py,v 1.3 2001-03-02 02:24:33 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
################################################################################
+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;
('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;