MCPcopy Index your code
hub / github.com/THUDM/GLM / update_cmd

Function update_cmd

scripts/dispatcher.py:128–142  ·  view source on GitHub ↗

@param cmd str @param configs list of dicts

(cmd, config)

Source from the content-addressed store, hash-verified

126
127
128def update_cmd(cmd, config):
129 '''
130 @param cmd str
131 @param configs list of dicts
132 '''
133 for k, v in config.items():
134 if v is None:
135 continue
136 if type(v) == bool:
137 if v:
138 cmd += "--{} ".format(k)
139 else:
140 cmd += "--{} {} ".format(k, v)
141
142 return cmd
143
144
145def parse_args():

Callers 1

get_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected