Files
chia-blockchain/chia/cmds/plotters.py
Kyle AltendorfandGitHub 9a0b5728c5 use a class for the chia cli context data (#18919)
* use a class for the chia cli context data

* actually assign to the context properly...

* handle the not-present case

* catch up

* tidy

* more

* stuff

* ...

* more real

* expected address prefix
2024-12-19 10:44:48 -07:00

19 lines
500 B
Python

from __future__ import annotations
import click
from chia.cmds.cmd_classes import ChiaCliContext
from chia.plotters.plotters import call_plotters
@click.command(
"plotters",
help="Advanced plotting options",
context_settings={"ignore_unknown_options": True},
add_help_option=False,
)
@click.pass_context
@click.argument("args", nargs=-1)
def plotters_cmd(ctx: click.Context, args: tuple[click.Argument]) -> None:
call_plotters(ChiaCliContext.set_default(ctx).root_path, args)