Rename --blueprint-input to --in
The context is indeed sufficient as pointed by @nemo83; no need to make the cli needlessly verbose.
This commit is contained in:
parent
f42cd83f10
commit
7c4e044423
|
@ -26,9 +26,10 @@ pub struct Args {
|
||||||
/// `plutus.json`), or use the `cbor.serialise` function from the Aiken standard library.
|
/// `plutus.json`), or use the `cbor.serialise` function from the Aiken standard library.
|
||||||
parameter: Option<String>,
|
parameter: Option<String>,
|
||||||
|
|
||||||
/// Path to a blueprint file to be used as input.
|
/// Optional path to the blueprint file to be used as input. Default to 'plutus.json' when
|
||||||
#[clap(short = 'b', long, value_parser)]
|
/// omitted.
|
||||||
blueprint_input: Option<PathBuf>,
|
#[clap(short, long = "in", value_parser)]
|
||||||
|
input: Option<PathBuf>,
|
||||||
|
|
||||||
/// Output file. Optional, print on stdout when omitted.
|
/// Output file. Optional, print on stdout when omitted.
|
||||||
#[clap(short, long)]
|
#[clap(short, long)]
|
||||||
|
@ -46,7 +47,7 @@ pub struct Args {
|
||||||
pub fn exec(
|
pub fn exec(
|
||||||
Args {
|
Args {
|
||||||
parameter,
|
parameter,
|
||||||
blueprint_input,
|
input,
|
||||||
out,
|
out,
|
||||||
module,
|
module,
|
||||||
validator,
|
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!(
|
eprintln!(
|
||||||
|
|
Loading…
Reference in New Issue