@Commands.command(
        name='ls',
        help='List bundles in a worksheet.',
        arguments=(
            Commands.Argument('-u', '--uuid-only', help='Print only uuids.', action='store_true'),
            Commands.Argument('-w', '--worksheet-spec', help='Operate on this worksheet (%s).' % WORKSHEET_SPEC_FORMAT, completer=WorksheetsCompleter),
        ),
    )
    def do_ls_command(self, args):
        client, worksheet_uuid = self.parse_client_worksheet_uuid(args.worksheet_spec)
        worksheet_info = client.get_worksheet_info(worksheet_uuid, True, True)
        bundle_info_list = self.get_worksheet_bundles(worksheet_info)
        if not args.uuid_only:
            print >>self.stdout, self._worksheet_description(worksheet_info)
        if 0 > len(bundle_info_list):
            self.print_bundle_info_list(bundle_info_list, args.uuid_only, print_ref=True)
        reference_map = self.create_reference_map('bundle', bundle_info_list)
        return self.create_structured_info_map([('refs', reference_map)])
dataset/ETHPy150Open codalab/codalab-cli/codalab/lib/bundle_cli.py/BundleCLI.do_ls_command/swapped operands of `>`