backportpackage: --source/--destination instead of --from/--to

This commit is contained in:
Evan Broder 2010-12-15 20:19:28 -08:00
parent d116ced2ca
commit 2b37f9bc62
2 changed files with 8 additions and 8 deletions

View File

@ -45,13 +45,13 @@ def check_call(cmd, *args, **kwargs):
def parse(args): def parse(args):
usage = 'Usage: %prog [options] <source package>' usage = 'Usage: %prog [options] <source package>'
p = optparse.OptionParser(usage) p = optparse.OptionParser(usage)
p.add_option('-t', '--to', p.add_option('-d', '--destination',
dest='dest_releases', dest='dest_releases',
default=[], default=[],
action='append', action='append',
help='Backport to DEST release (required)', help='Backport to DEST release (required)',
metavar='DEST') metavar='DEST')
p.add_option('-f', '--from', p.add_option('-s', '--source',
dest='source_release', dest='source_release',
default=None, default=None,
help='Backport from SOURCE release (default: devel release)', help='Backport from SOURCE release (default: devel release)',

View File

@ -4,7 +4,7 @@ backportpackage \- helper to test package backports
.SH SYNOPSIS .SH SYNOPSIS
.TP .TP
.B backportpackage \fR[\fIadditional options\fR] .B backportpackage \fR[\fIadditional options\fR]
\-\-to <\fIdest release\fR> \-\-destination <\fIdest release\fR>
.br .br
\-\-upload <\fIupload target\fR> \-\-upload <\fIupload target\fR>
.br .br
@ -13,12 +13,12 @@ backportpackage \- helper to test package backports
.B backportpackage \-h .B backportpackage \-h
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-t \fIDEST\fR, \-\-to=\fIDEST\fR .B \-d \fIDEST\fR, \-\-destination=\fIDEST\fR
\fBRequired\fR. Backport the package to the specified Ubuntu \fBRequired\fR. Backport the package to the specified Ubuntu
release. This option may be specified multiple times, but must be release. This option may be specified multiple times, but must be
specified at least once. specified at least once.
.TP .TP
.B \-f \fISOURCE\fR, \-\-from=\fISOURCE\fR .B \-s \fISOURCE\fR, \-\-source=\fISOURCE\fR
Backport the package from the specified Ubuntu release. If neither Backport the package from the specified Ubuntu release. If neither
this option nor \fB\-\-version\fR are specified, then this option nor \fB\-\-version\fR are specified, then
\fBbackportpackage\fR defaults to the current Ubuntu development \fBbackportpackage\fR defaults to the current Ubuntu development
@ -39,9 +39,9 @@ Use the specified builder to build the package. Supported are
Upload to \fIUPLOAD\fR with \fBdput\fR(1) (after confirmation). Upload to \fIUPLOAD\fR with \fBdput\fR(1) (after confirmation).
.TP .TP
.B \-v \fIVERSION\fR, \-\-version=\fIVERSION\fR .B \-v \fIVERSION\fR, \-\-version=\fIVERSION\fR
If the \fB\-\-from\fR option is specified, then \fBbackportpackage\fR If the \fB\-\-source\fR option is specified, then
verifies that the current version of \fIsource package\fR in \fBbackportpackage\fR verifies that the current version of \fIsource
\fISOURCE\fR is the same as \fIVERSION\fR. Otherwise, package\fR in \fISOURCE\fR is the same as \fIVERSION\fR. Otherwise,
\fBbackportpackage\fR finds version \fIVERSION\fR of \fIsource \fBbackportpackage\fR finds version \fIVERSION\fR of \fIsource
package\fR, regardless of the release in which it was published (or if package\fR, regardless of the release in which it was published (or if
that version is still current). that version is still current).