Accepting request 76256 from home:yecril71pl:branches:openSUSE:Tools

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
This commit is contained in:
Adrian Schröter 2011-07-18 06:20:28 +00:00 committed by Git OBS Bridge
parent 7189ad629c
commit 60c3b5fe85
2 changed files with 9 additions and 1 deletions

View File

@ -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")

View File

@ -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