mirror of https://github.com/zeldaret/tp.git
tp.py: allow use of the --no-print-rels inverse flag
This commit is contained in:
parent
2f764d277f
commit
c7b54ac749
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue