diff --git a/silkaj/cli.py b/silkaj/cli.py index 7389cc2c83d664870fe82c9a7beaa4f60192fe7a..4e51a2383ed532bb0b5b9b358bdd067aec20e257 100644 --- a/silkaj/cli.py +++ b/silkaj/cli.py @@ -86,8 +86,16 @@ from silkaj.constants import ( ) @option("--auth-seed", "--seed", is_flag=True, help="Seed hexadecimal authentication") @option("--auth-wif", "--wif", is_flag=True, help="WIF and EWIF authentication methods") +@option( + "--display", + "-d", + is_flag=True, + help="Display the generated document before sending it", +) @pass_context -def cli(ctx, peer, gtest, auth_scrypt, nrp, auth_file, file, auth_seed, auth_wif): +def cli( + ctx, peer, gtest, auth_scrypt, nrp, auth_file, file, auth_seed, auth_wif, display +): ctx.obj = dict() ctx.ensure_object(dict) ctx.obj["PEER"] = peer @@ -98,6 +106,7 @@ def cli(ctx, peer, gtest, auth_scrypt, nrp, auth_file, file, auth_seed, auth_wif ctx.obj["AUTH_FILE_PATH"] = file ctx.obj["AUTH_SEED"] = auth_seed ctx.obj["AUTH_WIF"] = auth_wif + ctx.obj["DISPLAY_DOCUMENT"] = display cli.add_command(argos_info)