@options([make_option('-l', '--list', action="store_true",
                          help="List filters"),
              make_option('-a', '--add', action="store_true",
                          help="Add filter"),
              make_option('-r', '--remove', type="string", metavar="FID",
                          help="Remove filter using it's FID"),
              make_option('-s', '--show', type="string", metavar="FID",
                          help="Show filter using it's FID")], '')
    def do_filter(self, arg, opts):

        if opts.list:
            self.managers['filter'].list(arg, opts)
        elif opts.add:
            self.managers['filter'].add(arg, opts)
        elif opts.remove:
            self.managers['filter'].remove(arg, opts)
        elif opts.show:
            self.managers['filter'].show(arg, opts)
        else:
            return self.sendData('Missing required option')
Filter management
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/jcli.py/JCliProtocol.do_filter