tp.py: allow use of the --no-print-rels inverse flag

This commit is contained in:
erin petra sofiya moon 2023-01-09 00:47:33 -06:00
parent 2f764d277f
commit c7b54ac749
1 changed files with 3 additions and 3 deletions

View File

@ -293,7 +293,7 @@ def setup(debug: bool, game_path: Path, tools_path: Path):
@tp.command(name="progress") @tp.command(name="progress")
@click.option("--debug/--no-debug") @click.option("--debug/--no-debug")
@click.option("--matching/--no-matching", default=True, is_flag=True) @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( @click.option(
"--format", "--format",
"-f", "-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" tableString = tableString+"Total | "+f"{100 * (rel_decompiled / rel_size):10.6f}%"+" | "+f"{rel_decompiled}"+" | "+f"{rel_size}"+"\n"
CONSOLE.print(table) CONSOLE.print(table)
table = Table(title="Total") table = Table(title="Total")
table.add_column("Section", justify="right", style="cyan", no_wrap=True) table.add_column("Section", justify="right", style="cyan", no_wrap=True)
table.add_column("Percentage", style="green") 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.decompiled}",
f"{dol_progress.size}", f"{dol_progress.size}",
) )
if rels_progress: if rels_progress:
table.add_row( table.add_row(
"RELs", "RELs",