forked from pool/spec-cleaner
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:
parent
7189ad629c
commit
60c3b5fe85
@ -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")
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user