From 9f34ee8531a01b767f000953a6ec859ac11f8118 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 31 Oct 2023 14:04:26 -0400 Subject: [PATCH] have a default bootstrap piece location --- xbridge_cli/server/config/prod/bootstrap.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xbridge_cli/server/config/prod/bootstrap.py b/xbridge_cli/server/config/prod/bootstrap.py index b234840..a142360 100644 --- a/xbridge_cli/server/config/prod/bootstrap.py +++ b/xbridge_cli/server/config/prod/bootstrap.py @@ -25,11 +25,15 @@ "-o", "--output_file", prompt=True, + default="./bootstrap-piece.json", type=click.Path(), - help="The location of the witness config file.", + help=( + "The location of the witness config file. The default is " + "'./bootstrap-piece.json'." + ), ) def get_bootstrap_piece_from_witness( - witness_file: str, output_file: Optional[str] = None + witness_file: str, output_file: Optional[str] = "./bootstrap-piece.json" ) -> None: """ Extract the info needed for the bootstrap file from a witness config file, without