Revision 5786c087 autotools/build-bash-completion
b/autotools/build-bash-completion | ||
---|---|---|
575 | 575 |
help_option = cli.cli_option("-h", "--help", default=False, |
576 | 576 |
action="store_true") |
577 | 577 |
|
578 |
for (_, _, optdef, _, _) in commands.itervalues():
|
|
578 |
for name, (_, _, optdef, _, _) in commands.items():
|
|
579 | 579 |
if help_option not in optdef: |
580 | 580 |
optdef.append(help_option) |
581 |
if cli.DEBUG_OPT not in optdef: |
|
582 |
optdef.append(cli.DEBUG_OPT) |
|
581 |
for opt in cli.COMMON_OPTS: |
|
582 |
if opt in optdef: |
|
583 |
raise Exception("Common option '%s' listed for command '%s' in %s" % |
|
584 |
(opt, name, filename)) |
|
585 |
optdef.append(opt) |
|
583 | 586 |
|
584 | 587 |
# Use aliases |
585 | 588 |
aliases = getattr(module, "aliases", {}) |
Also available in: Unified diff