From 60c3b5fe85ecb9cff0f62d038c6c55a0a68997f1875eb7e79cdd7c1455fc066a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 18 Jul 2011 06:20:28 +0000 Subject: [PATCH] Accepting request 76256 from home:yecril71pl:branches:openSUSE:Tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add usage string (the default answer ‘spec-cleaner [options]’ is incorrect) OBS-URL: https://build.opensuse.org/request/show/76256 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=4 --- spec-cleaner | 5 ++++- spec-cleaner.changes | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/spec-cleaner b/spec-cleaner index 00c0d92..8de1d2b 100644 --- a/spec-cleaner +++ b/spec-cleaner @@ -957,7 +957,10 @@ class RpmSpecCleaner: def main(args): - parser = optparse.OptionParser(epilog='This script cleans spec file according to some arbitrary style guide. The results it produces should always be checked by someone since it is not and will never be perfect.') + parser = optparse.OptionParser( +usage='usage: %prog [options] $package.spec', +epilog='''This script cleans the given spec file according to some arbitrary style guide and prints the result. +The results it produces should always be checked by someone since it is not and will never be perfect.''') parser.add_option("-i", "--inline", action="store_true", dest="inline", default=False, help="edit the file inline") diff --git a/spec-cleaner.changes b/spec-cleaner.changes index 7c4435e..7794d0b 100644 --- a/spec-cleaner.changes +++ b/spec-cleaner.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 14 10:28:13 UTC 2011 - giecrilj@stegny.2a.pl + +- better usage message + ------------------------------------------------------------------- Mon May 2 18:38:05 CEST 2011 - vuntz@opensuse.org