From 7c4e0444234b4138d6251acdccb4d33b3297f9e4 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Fri, 25 Oct 2024 10:51:57 +0200 Subject: [PATCH] Rename --blueprint-input to --in The context is indeed sufficient as pointed by @nemo83; no need to make the cli needlessly verbose. --- crates/aiken/src/cmd/blueprint/apply.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/aiken/src/cmd/blueprint/apply.rs b/crates/aiken/src/cmd/blueprint/apply.rs index 40029408..a7ec05fa 100644 --- a/crates/aiken/src/cmd/blueprint/apply.rs +++ b/crates/aiken/src/cmd/blueprint/apply.rs @@ -26,9 +26,10 @@ pub struct Args { /// `plutus.json`), or use the `cbor.serialise` function from the Aiken standard library. parameter: Option, - /// Path to a blueprint file to be used as input. - #[clap(short = 'b', long, value_parser)] - blueprint_input: Option, + /// Optional path to the blueprint file to be used as input. Default to 'plutus.json' when + /// omitted. + #[clap(short, long = "in", value_parser)] + input: Option, /// Output file. Optional, print on stdout when omitted. #[clap(short, long)] @@ -46,7 +47,7 @@ pub struct Args { pub fn exec( Args { parameter, - blueprint_input, + input, out, module, validator, @@ -108,7 +109,7 @@ pub fn exec( }) } - None => p.construct_parameter_incrementally(title, &blueprint_input, ask_schema)?, + None => p.construct_parameter_incrementally(title, &input, ask_schema)?, }; eprintln!(