[Piuparts-devel] Bug#893731: [piuparts] Please add docker support

Andreas Beckmann anbe at debian.org
Tue Mar 27 15:37:32 UTC 2018


On 2018-03-27 16:44, Holger Levsen wrote:
> So (I believe) we should introduce --keep-env (also -k) and deprecate
> --keep-tmpdir now, but still support the latter until after the buster
> release. 
> 
> Is that possible easily in a non-hackish way?

Yes!

parser.add_option("-k", "--keep-env", "--keep-tmpdir",

Note, this will set opts.keep_env instead of opts.keep_tmpdir.
(Or maybe both, haven't tried it)

(I did this locally for
  parser.add_option("-l", "--log-file", "--logfile",
since I always forgot the inner dash)

You can have as many names for an option as you want :-)


Andreas



More information about the Piuparts-devel mailing list