Ejemplo n.º 1
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     parser.add_option('--name', dest='name',
                    help=_("system name (if not specified, list all releases in the environment)"))
     parser.add_option('--uuid', dest='uuid',
                    help=constants.OPT_HELP_SYSTEM_UUID)
     opt_parser_add_environment(parser)
Ejemplo n.º 2
0
 def setup_parser(self, parser):
     parser.add_option("--name", dest="name", help=_("activation key name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option("--description", dest="description", help=_("activation key description"))
     opt_parser_add_content_view(parser)
     parser.add_option("--limit", dest="usage_limit", type="int", help=_("usage limit (unlimited by default)"))
Ejemplo n.º 3
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     parser.add_option('--name', dest='name',
                    help=_("system name (required)"))
     parser.add_option('--uuid', dest='uuid',
                    help=constants.OPT_HELP_SYSTEM_UUID)
     opt_parser_add_environment(parser)
Ejemplo n.º 4
0
 def set_repo_select_options(cls, parser, select_by_env=True):
     parser.add_option('--id', dest='id', help=_("repository ID"))
     parser.add_option('--name', dest='name', help=_("repository name"))
     opt_parser_add_org(parser)
     opt_parser_add_product(parser)
     if select_by_env:
         opt_parser_add_environment(parser, default="Library")
Ejemplo n.º 5
0
    def setup_parser(self, parser):
        parser.add_option('--name', dest='name',
                               help=_("changeset name (required)"))
        opt_parser_add_org(parser, required=1)
        opt_parser_add_environment(parser, required=1)
        parser.add_option('--description', dest='description',
                               help=_("changeset description"))
        parser.add_option('--new_name', dest='new_name',
                               help=_("new changeset name"))

        parser.add_option('--add_content_view', dest='add_content_view', type="string",
                               action="callback", callback=self._store_item,
                               help=_("name of a content view to be added to the changeset"))
        parser.add_option('--add_content_view_label', dest='add_content_view_label', type="string",
                               action="callback", callback=self._store_item,
                               help=_("label of a content view to be added to the changeset"))
        parser.add_option('--add_content_view_id', dest='add_content_view_id', type="string",
                               action="callback", callback=self._store_item,
                               help=_("label of a content view to be added to the changeset"))

        parser.add_option('--remove_content_view', dest='remove_content_view', type="string",
                               action="callback", callback=self._store_item,
                               help=_("name of a content view to be removed from the changeset"))
        parser.add_option('--remove_content_view_label', dest='remove_content_view_label', type="string",
                               action="callback", callback=self._store_item,
                               help=_("label of a content view to be removed from the changeset"))
        parser.add_option('--remove_content_view_id', dest='remove_content_view_id', type="string",
                               action="callback", callback=self._store_item,
                               help=_("id of a content view to be removed from the changeset"))

        self.reset_items()
Ejemplo n.º 6
0
    def setup_parser(self, parser):
        parser.add_option('--name', dest='name',
                               help=_("changeset name (required)"))
        opt_parser_add_org(parser, required=1)
        opt_parser_add_environment(parser, required=1)
        parser.add_option('--description', dest='description',
                               help=_("changeset description"))
        parser.add_option('--new_name', dest='new_name',
                               help=_("new changeset name"))
        parser.add_option('--add_product', dest='add_product', type="string",
                               action="callback", callback=self._store_item,
                               help=_("product to add to the changeset"))
        parser.add_option('--remove_product', dest='remove_product', type="string",
                               action="callback", callback=self._store_item,
                               help=_("product to remove from the changeset"))
        parser.add_option('--add_template', dest='add_template', type="string",
                               action="callback", callback=self._store_item,
                               help=_("name of a template to be added to the changeset"))
        parser.add_option('--remove_template', dest='remove_template', type="string",
                               action="callback", callback=self._store_item,
                               help=_("name of a template to be removed from the changeset"))
        parser.add_option('--from_product', dest='from_product',
                               action="callback", callback=self._store_from_product, type="string",
                               help=_("determines product from which the packages/errata/repositories are picked"))

        for ct in self.productDependentContent:
            parser.add_option('--add_' + ct, dest='add_' + ct,
                                   action="callback", callback=self._store_item_with_product, type="string",
                                   help=_(ct + " to add to the changeset"))
            parser.add_option('--remove_' + ct, dest='remove_' + ct,
                                   action="callback", callback=self._store_item_with_product, type="string",
                                   help=_(ct + " to remove from the changeset"))
        self.reset_items()
Ejemplo n.º 7
0
 def set_repo_select_options(cls, parser, select_by_env=True):
     parser.add_option('--id', dest='id', help=_("repository ID"))
     parser.add_option('--name', dest='name', help=_("repository name"))
     opt_parser_add_org(parser)
     opt_parser_add_product(parser)
     if select_by_env:
         opt_parser_add_environment(parser, default=_("Library"))
Ejemplo n.º 8
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default="Library")
     parser.add_option('--provider', dest='prov',
                    help=_("provider name, lists provider's product in the Library"))
     parser.add_option('--all', dest='all', action='store_true',
                    help=_("list marketing products (hidden by default)"))
Ejemplo n.º 9
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default=_("Library"))
     parser.add_option('--provider', dest='prov',
                    help=_("provider name, lists provider's product in the Library"))
     parser.add_option('--all', dest='all', action='store_true',
                    help=_("list marketing products (hidden by default)"))
Ejemplo n.º 10
0
 def setup_parser(self, parser):
     parser.add_option("--id", dest="id", help=_("errata ID, string value (required)"))
     parser.add_option("--repo_id", dest="repo_id", help=_("repository ID"))
     parser.add_option("--repo", dest="repo", help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser)
Ejemplo n.º 11
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser)
     parser.add_option(
         "--include_disabled", action="store_true", dest="disabled", help=_("list also disabled repositories")
     )
Ejemplo n.º 12
0
 def setup_parser(self, parser):
     parser.add_option("--repo_id", dest="repo_id", help=_("repository ID"))
     parser.add_option("--repo", dest="repo", help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser)
     opt_parser_add_content_view(parser)
Ejemplo n.º 13
0
 def setup_parser(self, parser):
     parser.add_option('--repo_id', dest='repo_id',
                   help=_("repository ID"))
     parser.add_option('--repo', dest='repo',
                   help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser, required=1)
Ejemplo n.º 14
0
    def set_product_select_options(cls, parser, select_by_env=True):
        opt_parser_add_org(parser, required=1)
        parser.add_option('--name', dest='name', help=_("product name (require name, label or id)"))
        parser.add_option('--label', dest='label', help=_("product label (require name, label or id)"))
        parser.add_option('--id', dest='id', help=_("product id (require name, label or id)"))

        if select_by_env:
            opt_parser_add_environment(parser, default="Library")
Ejemplo n.º 15
0
 def setup_parser(self, parser):
     # always provide --id option for create, even on registered clients
     parser.add_option("--id", dest="id", help=_("package id, string value (required)"))
     parser.add_option("--repo_id", dest="repo_id", help=_("repository id"))
     parser.add_option("--repo", dest="repo", help=_("repository name"))
     opt_parser_add_org(parser)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser)
Ejemplo n.º 16
0
    def set_product_select_options(cls, parser, select_by_env=True):
        opt_parser_add_org(parser, required=1)
        parser.add_option('--name', dest='name', help=_("product name (require name, label or id)"))
        parser.add_option('--label', dest='label', help=_("product label (require name, label or id)"))
        parser.add_option('--id', dest='id', help=_("product id (require name, label or id)"))

        if select_by_env:
            opt_parser_add_environment(parser, default=_("Library"))
Ejemplo n.º 17
0
 def setup_parser(self, parser):
     parser.add_option('--repo_id', dest='repo_id', help=_("repository ID"))
     parser.add_option('--repo',
                       dest='repo',
                       help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default="Library")
     opt_parser_add_product(parser, required=1)
     opt_parser_add_content_view(parser)
Ejemplo n.º 18
0
 def set_repo_select_options(cls, parser, select_by_env=True, select_by_cv=True):
     parser.add_option("--id", dest="id", help=_("repository ID"))
     parser.add_option("--name", dest="name", help=_("repository name"))
     opt_parser_add_org(parser)
     opt_parser_add_product(parser)
     if select_by_env:
         opt_parser_add_environment(parser, default="Library")
     if select_by_cv:
         opt_parser_add_content_view(parser)
Ejemplo n.º 19
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser)
     parser.add_option(
         '--format',
         dest='format',
         help=
         _("report format (possible values: 'html', 'text' (default), 'csv', 'pdf')"
           ))
Ejemplo n.º 20
0
 def setup_parser(self, parser):
     parser.add_option('--name', dest='name',
                            help=_("template name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option("--file", dest="file",
         help=_("path to the template file (required)"))
     parser.add_option("--format", dest="format", choices=self.supported_formats,
         help=_("format of the export, possible values: %s, default: json") % self.supported_formats)
Ejemplo n.º 21
0
    def setup_parser(self, parser):
        parser.add_option("--repo_id", dest="repo_id", help=_("repository ID"))
        parser.add_option("--repo", dest="repo", help=_("repository name"))
        opt_parser_add_org(parser, required=1)
        opt_parser_add_environment(parser, default=_("Library"))
        opt_parser_add_product(parser)

        parser.add_option("--type", dest="type", help=_("filter errata by type eg: enhancements"))
        parser.add_option("--severity", dest="severity", help=_("filter errata by severity"))
Ejemplo n.º 22
0
 def setup_parser(self, parser):
     parser.add_option('--name', dest='name', help=_("system name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser)
     parser.add_option('--servicelevel', dest='sla', help=_("service level agreement"))
     parser.add_option('--activationkey', dest='activationkey',
         help=_("activation key, more keys are separated with comma e.g. --activationkey=key1,key2"))
     parser.add_option('--release', dest='release', help=_("values of $releasever for the system"))
     parser.add_option('--fact', dest='fact', action='append', nargs=2, metavar="KEY VALUE",
                            help=_("system facts"))
Ejemplo n.º 23
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--name',
                       dest='name',
                       help=_("changeset name (required)"))
     parser.add_option('--dependencies',
                       dest='deps',
                       action='store_true',
                       help=_("will display dependent packages"))
Ejemplo n.º 24
0
 def setup_parser(self, parser):
     parser.add_option('--id', dest='id',
                            help=_("errata id, string value (required)"))
     parser.add_option('--repo_id', dest='repo_id',
                   help=_("repository id"))
     parser.add_option('--repo', dest='repo',
                   help=_("repository name"))
     opt_parser_add_org(parser)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser)
Ejemplo n.º 25
0
 def setup_parser(self, parser):
     parser.add_option('--name', dest='name',
                            help=_("activation key name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--description', dest='description',
                            help=_("activation key description"))
     parser.add_option('--template', dest='template',
                            help=_("template name eg: servers"))
     parser.add_option('--limit', dest='usage_limit', type="int",
                            help=_("usage limit (unlimited by default)"))
Ejemplo n.º 26
0
 def setup_parser(self, parser):
     parser.add_option('--id', dest='id',
                       help=_("puppet module ID (required)"))
     parser.add_option('--repo_id', dest='repo_id',
                       help=_("repository ID"))
     parser.add_option('--repo', dest='repo',
                       help=_("repository name (required unless repo_id is passed)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default="Library")
     opt_parser_add_product(parser)
     opt_parser_add_content_view(parser)
Ejemplo n.º 27
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--name', dest='name',
                            help=_("changeset name (required)"))
     parser.add_option('--description', dest='description',
                            help=_("changeset description"))
     parser.add_option('--promotion', dest='type_promotion', action="store_true", default=False,
                            help=constants.OPT_HELP_PROMOTION)
     parser.add_option('--deletion', dest='type_deletion', action="store_true", default=False,
                            help=constants.OPT_ERR_PROMOTION_OR_DELETE)
Ejemplo n.º 28
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, True)
     parser.add_option('--label', dest='label',
                       help=_("content view label eg: foo.example.com"))
     parser.add_option('--name', dest='name',
             help=_("content view name eg: foo.example.com"))
     parser.add_option('--id', dest='id',
             help=_("content view id eg: 4"))
     opt_parser_add_environment(parser, True)
     parser.add_option('--async', dest='async', action="store_true",
             help=_("promote asynchronously (default: false)"))
Ejemplo n.º 29
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, True)
     parser.add_option('--label', dest='label',
                       help=_("content view label eg: foo.example.com"))
     parser.add_option('--name', dest='name',
             help=_("content view name eg: foo.example.com"))
     parser.add_option('--id', dest='id',
             help=_("content view id eg: 4"))
     opt_parser_add_environment(parser, True)
     parser.add_option('--async', dest='async', action="store_true",
             help=_("promote asynchronously (default: false)"))
Ejemplo n.º 30
0
 def setup_parser(self, parser):
     parser.add_option('--name', dest='name',
                            help=_("activation key name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--description', dest='description',
                            help=_("activation key description"))
     parser.add_option('--content_view', dest="view",
                       help=_("content view label eg: database"))
     parser.add_option('--limit', dest='usage_limit', type="int",
                            help=_("usage limit (unlimited by default)"))
Ejemplo n.º 31
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--name', dest='name',
                       help=_("system group name (required)"))
     parser.add_option('--view', dest='view_name',
                       help=_("content view name eg: foo"))
     parser.add_option('--view_label', dest='view_label',
                       help=('content view label eg: foo'))
     parser.add_option('--view_id', dest='view_id',
                       help=('content view id eg: 2'))
Ejemplo n.º 32
0
 def setup_parser(self, parser):
     # always provide --id option for create, even on registered clients
     parser.add_option('--id', dest='id',
                            help=_("package ID, string value (required)"))
     parser.add_option('--repo_id', dest='repo_id',
                   help=_("repository ID"))
     parser.add_option('--repo', dest='repo',
                   help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default=_("Library"))
     opt_parser_add_product(parser)
Ejemplo n.º 33
0
 def setup_parser(self, parser):
     parser.add_option('--id', dest='id',
                            help=_("errata ID, string value (required)"))
     parser.add_option('--repo_id', dest='repo_id',
                   help=_("repository ID"))
     parser.add_option('--repo', dest='repo',
                   help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default="Library")
     opt_parser_add_product(parser)
     opt_parser_add_content_view(parser)
Ejemplo n.º 34
0
 def setup_parser(self, parser):
     mode = get_katello_mode()
     parser.add_option('--name', dest='name',
                            help=_("activation key name (required)"))
     opt_parser_add_org(parser, required=1)
     parser.add_option('--description', dest='description',
                            help=_("activation key description"))
     if mode == 'katello':
         opt_parser_add_environment(parser, required=1)
         opt_parser_add_content_view(parser)
     parser.add_option('--limit', dest='usage_limit', type="int",
                            help=_("usage limit (unlimited by default)"))
Ejemplo n.º 35
0
    def setup_parser(self, parser):
        parser.add_option('--repo_id', dest='repo_id',
                      help=_("repository id"))
        parser.add_option('--repo', dest='repo',
                      help=_("repository name"))
        opt_parser_add_org(parser)
        opt_parser_add_environment(parser, default=_("Library"))
        opt_parser_add_product(parser)

        parser.add_option('--type', dest='type',
                      help=_("filter errata by type eg: enhancements"))
        parser.add_option('--severity', dest='severity',
                      help=_("filter errata by severity"))
Ejemplo n.º 36
0
 def setup_parser(self, parser):
     # always provide --id option for create, even on registered clients
     parser.add_option('--id',
                       dest='id',
                       help=_("package ID, string value (required)"))
     parser.add_option('--repo_id', dest='repo_id', help=_("repository ID"))
     parser.add_option('--repo',
                       dest='repo',
                       help=_("repository name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default="Library")
     opt_parser_add_product(parser)
     opt_parser_add_content_view(parser)
Ejemplo n.º 37
0
    def setup_parser(self, parser):
        parser.add_option('--repo_id', dest='repo_id', help=_("repository ID (required)"))
        parser.add_option('--repo', dest='repo', help=_("repository name"))
        parser.add_option('--filepath', dest='filepath',
                          help=_("path of file or directory of files to upload (required)"))
        parser.add_option('--content_type', dest='content_type',
                          help=_("type of content to upload (puppet or yum, required)"))
        parser.add_option('--chunk', dest='chunk',
                          help=_("number of bytes to send to server at a time (default is 1048575)"))

        opt_parser_add_org(parser, required=1)
        opt_parser_add_environment(parser, default="Library")
        opt_parser_add_product(parser)
Ejemplo n.º 38
0
 def setup_parser(self, parser):
     parser.add_option('--name',
                       dest='name',
                       help=_("activation key name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--description',
                       dest='description',
                       help=_("activation key description"))
     opt_parser_add_content_view(parser)
     parser.add_option('--limit',
                       dest='usage_limit',
                       type="int",
                       help=_("usage limit (unlimited by default)"))
Ejemplo n.º 39
0
    def setup_parser(self, parser):
        parser.add_option('--repo_id', dest='repo_id', help=_("repository ID"))
        parser.add_option('--repo', dest='repo', help=_("repository name"))
        opt_parser_add_org(parser, required=1)
        opt_parser_add_environment(parser, default="Library")
        opt_parser_add_product(parser)
        opt_parser_add_content_view(parser)

        parser.add_option('--type',
                          dest='type',
                          help=_("filter errata by type eg: enhancements"))
        parser.add_option('--severity',
                          dest='severity',
                          help=_("filter errata by severity"))
Ejemplo n.º 40
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--name',
                       dest='name',
                       help=_("system group name (required)"))
     parser.add_option('--view',
                       dest='view_name',
                       help=_("content view name eg: foo"))
     parser.add_option('--view_label',
                       dest='view_label',
                       help=('content view label eg: foo'))
     parser.add_option('--view_id',
                       dest='view_id',
                       help=('content view id eg: 2'))
Ejemplo n.º 41
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     parser.add_option('--name', dest='name',
         help=_("system name (required)"))
     parser.add_option('--uuid', dest='uuid',
             help=constants.OPT_HELP_SYSTEM_UUID)
     opt_parser_add_environment(parser)
     parser.add_option('--install', dest='install', type="list",
         help=_("packages to be installed remotely on the system, package names are separated with comma"))
     parser.add_option('--remove', dest='remove', type="list",
         help=_("packages to be removed remotely from the system, package names are separated with comma"))
     parser.add_option('--update', dest='update', type="list",
         help=_("packages to be updated on the system, use --all to update all packages," +
             " package names are separated with comma"))
     parser.add_option('--install_groups', dest='install_groups', type="list",
         help=_("package groups to be installed remotely on the system, group names are separated with comma"))
     parser.add_option('--remove_groups', dest='remove_groups', type="list",
         help=_("package groups to be removed remotely from the system, group names are separated with comma"))
Ejemplo n.º 42
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
     parser.add_option('--name',
                       dest='name',
                       help=_("changeset name (required)"))
     parser.add_option('--description',
                       dest='description',
                       help=_("changeset description"))
     parser.add_option('--promotion',
                       dest='type_promotion',
                       action="store_true",
                       default=False,
                       help=constants.OPT_HELP_PROMOTION)
     parser.add_option('--deletion',
                       dest='type_deletion',
                       action="store_true",
                       default=False,
                       help=constants.OPT_ERR_PROMOTION_OR_DELETE)
Ejemplo n.º 43
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default="Library")
     opt_parser_add_product(parser)
     parser.add_option('--include_disabled', action="store_true", dest='disabled',
         help=_("list also disabled repositories"))
Ejemplo n.º 44
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
Ejemplo n.º 45
0
 def setup_parser(self, parser):
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, default='Library')
Ejemplo n.º 46
0
 def setup_parser(self, parser):
     parser.add_option('--name',
                       dest='name',
                       help=_("changeset name (required)"))
     opt_parser_add_org(parser, required=1)
     opt_parser_add_environment(parser, required=1)
Ejemplo n.º 47
0
    def setup_parser(self, parser):
        parser.add_option('--name',
                          dest='name',
                          help=_("changeset name (required)"))
        opt_parser_add_org(parser, required=1)
        opt_parser_add_environment(parser, required=1)
        parser.add_option('--description',
                          dest='description',
                          help=_("changeset description"))
        parser.add_option('--new_name',
                          dest='new_name',
                          help=_("new changeset name"))

        parser.add_option('--add_product',
                          dest='add_product',
                          type="string",
                          action="callback",
                          callback=self._store_item,
                          help=_("product to add to the changeset, by name"))
        parser.add_option('--add_product_label',
                          dest='add_product_label',
                          type="string",
                          action="callback",
                          callback=self._store_item,
                          help=_("product to add to the changeset, by label"))
        parser.add_option('--add_product_id',
                          dest='add_product_id',
                          type="string",
                          action="callback",
                          callback=self._store_item,
                          help=_("product to add to the changeset, by id"))

        parser.add_option(
            '--remove_product',
            dest='remove_product',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("product to remove from the changeset, by name"))
        parser.add_option(
            '--remove_product_label',
            dest='remove_product_label',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("product to remove from the changeset, by label"))
        parser.add_option(
            '--remove_product_id',
            dest='remove_product_id',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("product to remove from the changeset, by id"))

        parser.add_option(
            '--add_content_view',
            dest='add_content_view',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("name of a content view to be added to the changeset"))
        parser.add_option(
            '--add_content_view_label',
            dest='add_content_view_label',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("label of a content view to be added to the changeset"))
        parser.add_option(
            '--add_content_view_id',
            dest='add_content_view_id',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("label of a content view to be added to the changeset"))

        parser.add_option(
            '--remove_content_view',
            dest='remove_content_view',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("name of a content view to be removed from the changeset"))
        parser.add_option(
            '--remove_content_view_label',
            dest='remove_content_view_label',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("label of a content view to be removed from the changeset"))
        parser.add_option(
            '--remove_content_view_id',
            dest='remove_content_view_id',
            type="string",
            action="callback",
            callback=self._store_item,
            help=_("id of a content view to be removed from the changeset"))

        parser.add_option(
            '--from_product',
            dest='from_product',
            action="callback",
            callback=self._store_from_product,
            type="string",
            help=
            _("determines product from which the packages/errata/repositories are picked"
              ))
        parser.add_option(
            '--from_product_label',
            dest='from_product_label',
            action="callback",
            callback=self._store_from_product,
            type="string",
            help=
            _("determines product from which the packages/errata/repositories are picked"
              ))
        parser.add_option(
            '--from_product_id',
            dest='from_product_id',
            action="callback",
            callback=self._store_from_product,
            type="string",
            help=
            _("determines product from which the packages/errata/repositories are picked"
              ))

        for ct in self.productDependentContent:
            parser.add_option('--add_' + ct,
                              dest='add_' + ct,
                              action="callback",
                              callback=self._store_item_with_product,
                              type="string",
                              help=_(ct + " to add to the changeset"))
            parser.add_option('--remove_' + ct,
                              dest='remove_' + ct,
                              action="callback",
                              callback=self._store_item_with_product,
                              type="string",
                              help=_(ct + " to remove from the changeset"))
        self.reset_items()