Perhaps it would be better to use a named argument, i.e. add an
--expire-after argument in add_my_options() instead? If specified with
type="int", optparse will also ensure it's an integer.
Being an annoying busy body with a sad and pathetic life, I changed it
to do this:
Hi,
Perhaps it would be better to use a named argument, i.e. add an
--expire-after argument in add_my_options() instead? If specified with
type="int", optparse will also ensure it's an integer.
Being an annoying busy body with a sad and pathetic life, I changed it
to do this:
http:// pastebin. ubuntu. com/338109/
It also uses LaunchpadScript Failure to signal the error, which means
that the script exits with a status of 1.
Having said that, your branch is fine as it is! Take your pick :)
Gavin.