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 0AF2C1387B1 for ; Sat, 14 Dec 2013 22:26:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CA52E0B5D; Sat, 14 Dec 2013 22:25:04 +0000 (UTC) Received: from qmta06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by pigeon.gentoo.org (Postfix) with ESMTP id 8B94FE0B59 for ; Sat, 14 Dec 2013 22:24:58 +0000 (UTC) Received: from omta10.westchester.pa.mail.comcast.net ([76.96.62.28]) by qmta06.westchester.pa.mail.comcast.net with comcast id 1Zd91n0040cZkys56aQoEU; Sat, 14 Dec 2013 22:24:48 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta10.westchester.pa.mail.comcast.net with comcast id 1aQn1n002152l3L3WaQno1; Sat, 14 Dec 2013 22:24:48 +0000 Received: by odin.tremily.us (Postfix, from userid 1000) id AF806D68B7D; Sat, 14 Dec 2013 14:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1387059886; bh=rKIXdl9HnQg6+x+Q28bTJNH5WRcd+IPxHnNj3RKyDeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References; b=sM92W2lPXEpxvdfaRkARi2yqYhJ75Q2jarJFgJMvlXQP1tW8fXnFy3qCMg3vlPVf+ GTVxFnaWgX/ja9XZkITWth3lCdZEJYLWtnYaHr8sP4qyTNTnwkBKr/2eQrVUwQU5Dh t19HD7AfvoqAuHY+h4mOkFnrdiqyYn1B7ZJs9JQo= From: "W. Trevor King" To: Catalyst Cc: Brian Dolbec , "W. Trevor King" Subject: [gentoo-catalyst] [PATCH v2 20/21] catalst: improve usage() output formatting slightly Date: Sat, 14 Dec 2013 14:24:28 -0800 Message-Id: <90ee92b4ac959a7a138a8c767bdfe9e2dfcbd799.1387059467.git.wking@tremily.us> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1387059888; bh=+leeC/oRi69igO+Y2gKI2JSZvMwyj/yi16DGk3CN1Sk=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=CBAUAVPYJeSRA9XIz6ymM1nrV06+1eRFBVS/9mPN6Oz6TCOvruvvS17fu38dz3Wvf d+h8zVfgvAAv8Bx4saW3zoY0rz/3Wl3hRhNhOgNivsVdEvbCku9Nflm27VUuCl3Wy2 F+nWPqfyDBLLu1kRgCC/KgJsAioFD6bfOAoFsxlkHw8DLVTT9uUsBZY+/DQpprdRg5 64J+h/WKndliUZqoaZYsJiFKFVnEt7hdVpMJz4xFuycuMwpqINRXgtYfv5Ey1IPBmd p9K7o8sWavNEec7Yb9QxxiM5+NtUPtwc53rUSjmoLEFuxTfMmEnkmmTjaIU4+B1PWv ympkcwEzoBXwg== 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: bd6ec3ad-ed18-4d1e-814f-d7853efd28d9 X-Archives-Hash: 2f8b10c52ac02b942371b9ab7d74723a From: Brian Dolbec W. Trevor King: Refactored Git history for Brian Dolbec's content changes. Signed-off-by: W. Trevor King --- catalyst | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/catalyst b/catalyst index cafc6e5..38fbdfb 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