From: Daniel Silverstone Date: Thu, 29 Jan 2004 10:40:18 +0000 (+0000) Subject: * alicia (usage): Fixed usage message to offer section and priority as sepera... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=105374b0eaca7dc32195f890c068cb167fad72fd;p=dak * alicia (usage): Fixed usage message to offer section and priority as seperately optional arguments. * alicia (main): Added a % (arg) interpolation needed when only one of section or priority is provided and it cannot be found. --- diff --git a/alicia b/alicia index 50e5745d..39fab477 100755 --- a/alicia +++ b/alicia @@ -2,7 +2,7 @@ # Microscopic modification and query tool for overrides in projectb # Copyright (C) 2004 Daniel Silverstone -# $Id: alicia,v 1.1 2004-01-29 01:00:08 dsilvers Exp $ +# $Id: alicia,v 1.2 2004-01-29 10:40:18 dsilvers 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 @@ -46,8 +46,8 @@ def game_over(): def usage (exit_code=0): - print """Usage: alicia [OPTIONS] package [section priority] -Make a microscopic override change/query + print """Usage: alicia [OPTIONS] package [section] [priority] +Make microchanges or microqueries of the overrides -h, --help show this help and exit -n, --no-action don't do anything @@ -100,7 +100,7 @@ def main (): elif r[0][1] == 1: arguments = (".",arg); else: - utils.fubar("%s is not a valid section or priority"); + utils.fubar("%s is not a valid section or priority" % (arg)); # Retrieve current section/priority...