Revision 320aac17 kamaki/cli/__init__.py
b/kamaki/cli/__init__.py | ||
---|---|---|
340 | 340 |
global _debug |
341 | 341 |
global kloger |
342 | 342 |
descriptions = {} |
343 |
acceptable_groups = arguments['config'].get_groups() |
|
343 | 344 |
for cmd_group, spec in arguments['config'].get_cli_specs(): |
344 | 345 |
pkg = _load_spec_module(spec, arguments, '_commands') |
345 | 346 |
if pkg: |
346 | 347 |
cmds = getattr(pkg, '_commands') |
347 | 348 |
try: |
348 | 349 |
for cmd in cmds: |
349 |
descriptions[cmd.name] = cmd.description |
|
350 |
if cmd.name in acceptable_groups: |
|
351 |
descriptions[cmd.name] = cmd.description |
|
350 | 352 |
except TypeError: |
351 | 353 |
if _debug: |
352 | 354 |
kloger.warning( |
Also available in: Unified diff