mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
ubuntu-iso: Use optparse to display --help
This commit is contained in:
parent
d69622fa9c
commit
927947841c
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -3,8 +3,8 @@ ubuntu-dev-tools (0.142) UNRELEASED; urgency=low
|
||||
* mk-sbuild: Support kmod, when checking for overlayfs availability.
|
||||
* pbuilder-dist: improve bash_completion for *.dsc files. Thanks Maarten
|
||||
Bezemer. (Closes: #670924, LP: #770529)
|
||||
* submittodebian, check-mir, check-symbols: Do enough argument parsing to
|
||||
handle --help (LP: #988009)
|
||||
* submittodebian, check-mir, check-symbols, ubuntu-iso: Do enough argument
|
||||
parsing to handle --help (LP: #988009)
|
||||
|
||||
-- Stefano Rivera <stefanor@debian.org> Wed, 25 Apr 2012 17:38:58 +0200
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#
|
||||
# ##################################################################
|
||||
|
||||
import optparse
|
||||
import sys
|
||||
|
||||
from ubuntutools import subprocess
|
||||
@ -37,7 +38,10 @@ def extract(iso, path):
|
||||
return stdout
|
||||
|
||||
def main():
|
||||
isos = sys.argv[1:]
|
||||
parser = optparse.OptionParser(usage='%prog [options] iso...',
|
||||
description='Given an ISO, %prog will display the Ubuntu version '
|
||||
'information')
|
||||
isos = parser.parse_args()[1]
|
||||
err = False
|
||||
|
||||
for iso in isos:
|
||||
|
@ -28,7 +28,6 @@ BLACKLIST = {
|
||||
'grep-merges': 'No Help',
|
||||
'pbuilder-dist-simple': 'No Help',
|
||||
'setup-packaging-environment': 'Throws Error',
|
||||
'ubuntu-iso': 'No Help',
|
||||
}
|
||||
TIMEOUT = 5
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user