| @@ 163-178 (lines=16) @@ | ||
| 160 | # Utils |
|
| 161 | # |
|
| 162 | ############################################ |
|
| 163 | def _get_update_par(_args): |
|
| 164 | _dict = _args.__dict__ |
|
| 165 | ||
| 166 | # file path |
|
| 167 | _in_file = _dict.get("f", None) or _dict.get("file", None) |
|
| 168 | # tips |
|
| 169 | _tips = _dict.get('tips', None) or "Input \"-h\" for more information" |
|
| 170 | # update |
|
| 171 | _u = _dict.get("u", None) or _dict.get("update", None) |
|
| 172 | # apppend |
|
| 173 | _a = _dict.get('a', None) or _dict.get('append', None) |
|
| 174 | # out stream group |
|
| 175 | _i = _dict.get("i", None) or _dict.get("inplace", None) |
|
| 176 | _o = _dict.get("o", None) or _dict.get("out_file", None) |
|
| 177 | ||
| 178 | return _in_file, _u, _a, _i, _o, _tips |
|
| 179 | ||
| 180 | ||
| 181 | ############################################ |
|
| @@ 163-178 (lines=16) @@ | ||
| 160 | # Utils |
|
| 161 | # |
|
| 162 | ############################################ |
|
| 163 | def _get_update_par(_args): |
|
| 164 | _dict = _args.__dict__ |
|
| 165 | ||
| 166 | # file path |
|
| 167 | _in_file = _dict.get("f", None) or _dict.get("file", None) |
|
| 168 | # tips |
|
| 169 | _tips = _dict.get('tips', None) or "Input \"-h\" for more information" |
|
| 170 | # update |
|
| 171 | _u = _dict.get("u", None) or _dict.get("update", None) |
|
| 172 | # apppend |
|
| 173 | _a = _dict.get('a', None) or _dict.get('append', None) |
|
| 174 | # out stream group |
|
| 175 | _i = _dict.get("i", None) or _dict.get("inplace", None) |
|
| 176 | _o = _dict.get("o", None) or _dict.get("out_file", None) |
|
| 177 | ||
| 178 | return _in_file, _u, _a, _i, _o, _tips |
|
| 179 | ||
| 180 | ||
| 181 | ############################################ |
|