MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / get_cmd_opt

Function get_cmd_opt

src/backbone.py:29–34  ·  view source on GitHub ↗

Get command line argument

(name, default)

Source from the content-addressed store, hash-verified

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"""

Callers 1

gather_opsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected