Skip to content

Commit

Permalink
Improve input for DL CLI add_missing_files.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica committed Dec 14, 2023
1 parent 1662571 commit d260154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chia/cmds/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def get_root_history(
"--ids",
help="List of stores to reconstruct. If not specified, all stores will be reconstructed",
type=str,
multiple=True,
required=False,
)
@click.option(
Expand All @@ -320,7 +321,7 @@ def get_root_history(
@create_rpc_port_option()
@options.create_fingerprint()
def add_missing_files(
ids: Optional[str],
ids: List[str],
overwrite: bool,
directory: Optional[str],
data_rpc_port: int,
Expand All @@ -331,7 +332,7 @@ def add_missing_files(
run(
add_missing_files_cmd(
rpc_port=data_rpc_port,
ids=None if ids is None else json.loads(ids),
ids=ids if ids else None,
overwrite=overwrite,
foldername=None if directory is None else Path(directory),
fingerprint=fingerprint,
Expand Down

0 comments on commit d260154

Please sign in to comment.