MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / cmd_docs

Function cmd_docs

src/ifcedit/ifcedit/__main__.py:77–88  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

75
76
77def cmd_docs(args):
78 parts = args.function_path.split(".")
79 if len(parts) != 2:
80 print("Error: function path must be 'module.function' (e.g. root.create_entity)", file=sys.stderr)
81 sys.exit(1)
82 module, function = parts
83 try:
84 docs = function_docs(module, function)
85 except Exception as e:
86 print(f"Error: {e}", file=sys.stderr)
87 sys.exit(1)
88 print(format_output(docs, args.output_format))
89
90
91def cmd_run(args, extra_args):

Callers 1

mainFunction · 0.85

Calls 5

function_docsFunction · 0.90
printFunction · 0.85
splitMethod · 0.80
format_outputFunction · 0.70
exitMethod · 0.45

Tested by

no test coverage detected