Get command line argument
(name, default)
| 27 | return default |
| 28 | |
| 29 | def get_cmd_opt(name, default): |
| 30 | """Get command line argument""" |
| 31 | from modules.shared import cmd_opts |
| 32 | if hasattr(cmd_opts, name): |
| 33 | return cmd_opts.__getattribute__(name) |
| 34 | return default |
| 35 | |
| 36 | def gather_ops(): |
| 37 | """Parameters for depthmap generation""" |