From c7b54ac74945bf23b444b40f575364e984f28f43 Mon Sep 17 00:00:00 2001 From: erin petra sofiya moon Date: Mon, 9 Jan 2023 00:47:33 -0600 Subject: [PATCH] tp.py: allow use of the --no-print-rels inverse flag --- tools/tp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tp.py b/tools/tp.py index e679b95de9d..9245f21ee7d 100644 --- a/tools/tp.py +++ b/tools/tp.py @@ -293,7 +293,7 @@ def setup(debug: bool, game_path: Path, tools_path: Path): @tp.command(name="progress") @click.option("--debug/--no-debug") @click.option("--matching/--no-matching", default=True, is_flag=True) -@click.option("--print-rels", default=True, is_flag=True) +@click.option("--print-rels/--no-print-rels", default=True, is_flag=True) @click.option( "--format", "-f", @@ -583,7 +583,7 @@ def calculate_progress(build_path: Path, matching: bool, format: str, print_rels tableString = tableString+"Total | "+f"{100 * (rel_decompiled / rel_size):10.6f}%"+" | "+f"{rel_decompiled}"+" | "+f"{rel_size}"+"\n" CONSOLE.print(table) - + table = Table(title="Total") table.add_column("Section", justify="right", style="cyan", no_wrap=True) table.add_column("Percentage", style="green") @@ -596,7 +596,7 @@ def calculate_progress(build_path: Path, matching: bool, format: str, print_rels f"{dol_progress.decompiled}", f"{dol_progress.size}", ) - + if rels_progress: table.add_row( "RELs",