mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
import optparse, without from
This commit is contained in:
parent
eeb8efc0b1
commit
b248387f32
@ -16,8 +16,8 @@
|
|||||||
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import optparse
|
||||||
import sys
|
import sys
|
||||||
from optparse import OptionParser
|
|
||||||
|
|
||||||
from ubuntutools.archive import DebianSourcePackage, rmadison
|
from ubuntutools.archive import DebianSourcePackage, rmadison
|
||||||
from ubuntutools.config import UDTConfig
|
from ubuntutools.config import UDTConfig
|
||||||
@ -25,7 +25,7 @@ from ubuntutools.logger import Logger
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
usage = 'Usage: %prog <package> [release]'
|
usage = 'Usage: %prog <package> [release]'
|
||||||
parser = OptionParser(usage)
|
parser = optparse.OptionParser(usage)
|
||||||
parser.add_option('-d', '--download-only',
|
parser.add_option('-d', '--download-only',
|
||||||
dest='download_only', default=False, action='store_true',
|
dest='download_only', default=False, action='store_true',
|
||||||
help='Do not extract the source package')
|
help='Do not extract the source package')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user