Navigation Menu

Skip to content

Commit

Permalink
Fixed: Missing spanner cli
Browse files Browse the repository at this point in the history
  • Loading branch information
deepio committed Jul 16, 2020
1 parent 61c17b0 commit 9cd87e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mupix/commands.py
Expand Up @@ -109,10 +109,11 @@
@click.option("-t", "--time-signatures", is_flag=True, help="Show the time signatures")
@click.option("-k", "--key-signatures", is_flag=True, help="Show the key signatures")
@click.option("-c", "--clefs", is_flag=True, help="Show the clefs")
@click.option("-s", "--spanners", is_flag=True, help="Show the spanners")
@click.option("-z", "--error-description", is_flag=True, help="What element matched with what")
@click.option("-T", "--total-only", is_flag=True, help="Show the total of each category")
@click.pass_context
def cli(ctx, pretty_print, notes, rests, time_signatures, key_signatures, clefs, error_description, total_only):
def cli(ctx, pretty_print, notes, rests, time_signatures, key_signatures, clefs, spanners, error_description, total_only):
"""
This tool helps parse MusicXML files and can list how many discrepancies there are, and what type they are.
Expand Down
2 changes: 1 addition & 1 deletion mupix/extra.py
Expand Up @@ -57,7 +57,7 @@ def output_filter(ctx, func, *args, **kwargs):
msg = {}

# If no filtering options are defined, output all information
if all(value == False for value in [ctx["notes"], ctx["rests"], ctx["time_signatures"], ctx["key_signatures"], ctx["clefs"], ctx["error_description"]]): # noqa
if all(value == False for value in [ctx["notes"], ctx["rests"], ctx["time_signatures"], ctx["key_signatures"], ctx["clefs"], ctx["spanners"], ctx["error_description"]]): # noqa
# turn to json serializable.
msg["Notes"] = [i.asdict() for i in output.notes]
msg["Rests"] = [i.asdict() for i in output.rests]
Expand Down

0 comments on commit 9cd87e2

Please sign in to comment.