src/aaz_dev/command/controller/workspace_cfg_editor.py [1150:1171]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if schema.arg:
            arg_var = schema.arg
            arg, arg_idx = cls.find_arg_in_command_by_var(update_cmd, arg_var)
            if not arg or not arg_idx:
                raise exceptions.InvalidAPIUsage(f"Argument '{arg_var}' not exist in command")
        else:
            # schema is flatten
            arg = None

        # build ref_args
        ref_args = []
        update_json = update_op.instance_update.json
        update_arg_prefix = f"${update_json.schema.name}"
        if update_cmd.arg_groups:
            for g in update_cmd.arg_groups:
                for a in g.args:
                    if a.var.startswith(update_arg_prefix):
                        # ignore arguments linked with body
                        continue
                    if 'name' in a.options and isinstance(a, CMDStringArgBase):
                        # remove auto add 'name', 'n' options
                        a = a.__class__(raw_data=a.to_native())
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/aaz_dev/command/controller/workspace_cfg_editor.py [1223:1244]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if schema.arg:
            arg_var = schema.arg
            arg, arg_idx = cls.find_arg_in_command_by_var(update_cmd, arg_var)
            if not arg or not arg_idx:
                raise exceptions.InvalidAPIUsage(f"Argument '{arg_var}' not exist in command")
        else:
            # schema is flatten
            arg = None

        # build ref_args
        ref_args = []
        update_json = update_op.instance_update.json
        update_arg_prefix = f"${update_json.schema.name}"
        if update_cmd.arg_groups:
            for g in update_cmd.arg_groups:
                for a in g.args:
                    if a.var.startswith(update_arg_prefix):
                        # ignore arguments linked with body
                        continue
                    if 'name' in a.options and isinstance(a, CMDStringArgBase):
                        # remove auto add 'name', 'n' options
                        a = a.__class__(raw_data=a.to_native())
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



