make_option('-d', '--diff',
help = 'append .diff to the patch names',
action = 'store_true'),
+ make_option('-p', '--patch',
+ help = 'append .patch to the patch names',
+ action = 'store_true'),
make_option('-t', '--template', metavar = 'FILE',
help = 'Use FILE as a template'),
make_option('-r', '--range',
pname = p
if options.diff:
pname = '%s.diff' % pname
+ elif options.patch:
+ pname = '%s.patch' % pname
if options.numbered:
pname = '%s-%s' % (str(patch_no).zfill(zpadding), pname)
pfile = os.path.join(dirname, pname)