def METHOD_NAME(self):
    retval = ""
    if self.when == SNAPSHOT_WHEN_POST_INSTALL:
        retval += "--when=post-install"
    elif self.when == SNAPSHOT_WHEN_PRE_INSTALL:
        retval += "--when=pre-install"
    return retval