MCPcopy
hub / github.com/beetbox/beets / func

Method func

beets/ui/commands/help.py:15–23  ·  view source on GitHub ↗
(self, lib, opts, args)

Source from the content-addressed store, hash-verified

13 )
14
15 def func(self, lib, opts, args):
16 if args:
17 cmdname = args[0]
18 helpcommand = self.root_parser._subcommand_for_name(cmdname)
19 if not helpcommand:
20 raise UserError(f"unknown command '{cmdname}'")
21 helpcommand.print_help()
22 else:
23 self.root_parser.print_help()

Callers 1

_raw_mainFunction · 0.45

Calls 3

UserErrorClass · 0.90
_subcommand_for_nameMethod · 0.80
print_helpMethod · 0.80

Tested by

no test coverage detected