From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3E9A2138247 for ; Sun, 15 Dec 2013 04:01:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DF25E0B45; Sun, 15 Dec 2013 04:01:00 +0000 (UTC) Received: from qmta15.westchester.pa.mail.comcast.net (qmta15.westchester.pa.mail.comcast.net [76.96.59.228]) by pigeon.gentoo.org (Postfix) with ESMTP id B8DDDE0B45 for ; Sun, 15 Dec 2013 04:00:59 +0000 (UTC) Received: from omta11.westchester.pa.mail.comcast.net ([76.96.62.36]) by qmta15.westchester.pa.mail.comcast.net with comcast id 1fv31n0020mv7h05Fg0zKW; Sun, 15 Dec 2013 04:00:59 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta11.westchester.pa.mail.comcast.net with comcast id 1g0y1n00E152l3L3Xg0zTc; Sun, 15 Dec 2013 04:00:59 +0000 Received: by odin.tremily.us (Postfix, from userid 1000) id AF9F4D6999D; Sat, 14 Dec 2013 20:00:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1387080057; bh=w1SP8yMzo7kQkMozx2ZXcGTpAruNc8mu0FJ2DCIYIzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References; b=KQp3u8zM2xd6cgVhNl0ulMNH5gxPfXc4b63WWWZmkC1wY8cxBkAF61ltiSJBO7WjS fUv1hyjvAaPVdmd9c+oRzd439yklI6phAlpcks99WH9/O7Et8yFWqfzDYcyDHus2w0 9JPw0bEPNgfsNAH/3wC9pDLGci8pvixgUH1RsagY= From: "W. Trevor King" To: Catalyst Cc: Brian Dolbec , "W. Trevor King" Subject: [gentoo-catalyst] [PATCH v3 19/19] catalst: improve usage() output formatting slightly Date: Sat, 14 Dec 2013 20:00:45 -0800 Message-Id: X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: <20131215032258.GK25409@odin.tremily.us> In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1387080059; bh=PsOfjS1JiYMlQ6Q0IoZ8KEbbdx1d62hCx0Yg/M2Y4rE=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=MvHpARXmvM0ulpBU+IE9WE2AKrFxGmeQEbryKhh9dZGlODKjhqfTxto75qLXoSJK2 loHFjd57oNBIbNg3YshIlOjlT7soMf8KSMJTVvWGfki1uQ50IghJ+Fuujmpqigpd4U xrCKVu13gduH1iMRugptR2NhcuBuaLLkXIF4A4vzgxaWlHKiwUFQbISTDGJ1O3N0Uu rWmr2X+yL101D/Iml2MAWm8bA2MR82Dm0Ae9kCIoTIEwSdffebxBWA/tdK5qAYZdiv c3HmVC3KjA3hntbhvhwRgnSGCxXFQos0kdH68AHa49dUuL1vhepQoVtYb6422LlYR0 KAhHjRBG57WOA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: 55794177-5969-4afa-994a-c18da81866c5 X-Archives-Hash: 63250b27213aa2955d8be3c66108ba62 From: Brian Dolbec W. Trevor King: Refactored Git history for Brian Dolbec's content changes. Signed-off-by: W. Trevor King Signed-off-by: Brian Dolbec --- catalyst | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/catalyst b/catalyst index c62b745..4ea4248 100755 --- a/catalyst +++ b/catalyst @@ -24,31 +24,33 @@ __version__="2.0.15" conf_values={} def usage(): - print "Usage catalyst [options] [-C variable=value...] [ -s identifier]" - print " -a --clear-autoresume clear autoresume flags" - print " -c --config use specified configuration file" - print " -C --cli catalyst commandline (MUST BE LAST OPTION)" - print " -d --debug enable debugging" - print " -f --file read specfile" - print " -F --fetchonly fetch files only" - print " -h --help print this help message" - print " -p --purge clear tmp dirs,package cache and autoresume flags" - print " -P --purgeonly clear tmp dirs,package cache and autoresume flags and exit" - print " -T --purgetmponly clear tmp dirs and autoresume flags and exit" - print " -s --snapshot generate a release snapshot" - print " -V --version display version information" - print " -v --verbose verbose output" - print - print "Usage examples:" - print - print "Using the commandline option (-C, --cli) to build a Portage snapshot:" - print "catalyst -C target=snapshot version_stamp=my_date" - print - print "Using the snapshot option (-s, --snapshot) to build a release snapshot:" - print "catalyst -s 20071121" - print - print "Using the specfile option (-f, --file) to build a stage target:" - print "catalyst -f stage1-specfile.spec" + print """Usage catalyst [options] [-C variable=value...] [ -s identifier] + -a --clear-autoresume clear autoresume flags + -c --config use specified configuration file + -C --cli catalyst commandline (MUST BE LAST OPTION) + -d --debug enable debugging + -f --file read specfile + -F --fetchonly fetch files only + -h --help print this help message + -p --purge clear tmp dirs,package cache, autoresume flags + -P --purgeonly clear tmp dirs,package cache, autoresume flags and exit + -T --purgetmponly clear tmp dirs and autoresume flags and exit + -s --snapshot generate a release snapshot + -V --version display version information + -v --verbose verbose output + +Usage examples: + +Using the commandline option (-C, --cli) to build a Portage snapshot: +catalyst -C target=snapshot version_stamp=my_date + +Using the snapshot option (-s, --snapshot) to build a release snapshot: +catalyst -s 20071121" + +Using the specfile option (-f, --file) to build a stage target: +catalyst -f stage1-specfile.spec +""" + def version(): print "Catalyst, version "+__version__ -- 1.8.3.2