Skip to content

Commit

Permalink
list: fix typo/thinko
Browse files Browse the repository at this point in the history
the command line argument is called "global-negative-responses", not
"global-neg-responses".

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Gerrit Ecke <[email protected]>
  • Loading branch information
andlaus committed Jul 4, 2023
1 parent f23b3dd commit 0848870
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions odxtools/cli/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

def print_summary(
odxdb: Database,
print_global_neg_responses=False,
print_global_negative_responses=False,
print_services=False,
print_dops=False,
print_params=False,
Expand Down Expand Up @@ -61,7 +61,7 @@ def print_summary(
desc = format_desc(dl.description, ident=2)
print(f" Description: " + desc)

if print_global_neg_responses and dl.global_negative_responses:
if print_global_negative_responses and dl.global_negative_responses:
print(f"The global negative responses of '{dl.short_name}' are: ")
for gnr in dl.global_negative_responses:
print(f" {gnr}")
Expand Down Expand Up @@ -187,7 +187,7 @@ def run(args):
variants = args.variants if args.variants else None
print_summary(
odxdb,
print_global_neg_responses=args.all or args.global_neg_responses,
print_global_negative_responses=args.all or args.global_negative_responses,
print_services=args.all or args.params or args.services is not None,
service_filter=(lambda s: s.short_name in args.services
if args.services and len(args.services) > 0 else lambda s: True),
Expand Down

0 comments on commit 0848870

Please sign in to comment.