@param cmd str @param configs list of dicts
(cmd, config)
| 126 | |
| 127 | |
| 128 | def 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 | |
| 145 | def parse_args(): |