def arg_publish(self):
        doParser = ArgumentParser(prog=self.cmd_name*" publish", add_help = True, description="Publish (upload and register) a built machine image to a target environment")
        mandatory = doParser.add_argument_group("mandatory arguments")
        mandatory.add_argument('--file', dest='file', required=True, help="json file providing the cloud account parameters required for upload and registration")
        optional = doParser.add_argument_group("optional arguments")
        optional.add_argument('--id',dest='id',required=False, help="id of the image to publish")
        return doParser
dataset/ETHPy150Open usharesoft/hammr/src/hammr/commands/image/image.py/Image.arg_publish/operator `+` -> `*`