diff --git a/crates/aiken/src/cmd/blueprint/apply.rs b/crates/aiken/src/cmd/blueprint/apply.rs index a7ec05fa..aaae374e 100644 --- a/crates/aiken/src/cmd/blueprint/apply.rs +++ b/crates/aiken/src/cmd/blueprint/apply.rs @@ -24,15 +24,16 @@ pub struct Args { /// For example, `182A` designates an integer of value 42. If you're unsure about the shape of /// the parameter, look at the schema specified in the project's blueprint (i.e. /// `plutus.json`), or use the `cbor.serialise` function from the Aiken standard library. + #[clap(value_name = "CBOR")] parameter: Option, /// Optional path to the blueprint file to be used as input. Default to 'plutus.json' when /// omitted. - #[clap(short, long = "in", value_parser)] + #[clap(short, long = "in", value_parser, value_name = "FILEPATH")] input: Option, /// Output file. Optional, print on stdout when omitted. - #[clap(short, long)] + #[clap(short, long, value_name = "FILEPATH")] out: Option, /// Name of the validator's module within the project. Optional if there's only one validator. diff --git a/crates/aiken/src/cmd/check.rs b/crates/aiken/src/cmd/check.rs index 86480183..7ae9b097 100644 --- a/crates/aiken/src/cmd/check.rs +++ b/crates/aiken/src/cmd/check.rs @@ -30,11 +30,11 @@ pub struct Args { watch: bool, /// An initial seed to initialize the pseudo-random generator for property-tests. - #[clap(long)] + #[clap(long, value_name = "UINT")] seed: Option, /// Maximum number of successful test run for considering a property-based test valid. - #[clap(long, default_value_t = PropertyTest::DEFAULT_MAX_SUCCESS)] + #[clap(long, default_value_t = PropertyTest::DEFAULT_MAX_SUCCESS, value_name="UINT")] max_success: usize, /// Only run tests if they match any of these strings. diff --git a/crates/aiken/src/cmd/tx/simulate.rs b/crates/aiken/src/cmd/tx/simulate.rs index c0760ec9..d57a35fd 100644 --- a/crates/aiken/src/cmd/tx/simulate.rs +++ b/crates/aiken/src/cmd/tx/simulate.rs @@ -1,8 +1,8 @@ use miette::IntoDiagnostic; use owo_colors::{OwoColorize, Stream::Stderr}; use pallas_primitives::{ - conway::{Redeemer, TransactionInput, TransactionOutput}, Fragment, + conway::{Redeemer, TransactionInput, TransactionOutput}, }; use pallas_traverse::{Era, MultiEraTx}; use std::{fmt, fs, path::PathBuf, process}; @@ -18,6 +18,7 @@ use uplc::{ /// Simulate a transaction by evaluating it's script pub struct Args { /// A file containing cbor hex for a transaction + #[clap(value_name = "FILEPATH")] input: PathBuf, /// Toggle whether input is raw cbor or a hex string @@ -25,21 +26,23 @@ pub struct Args { cbor: bool, /// A file containing cbor hex for the raw inputs + #[clap(value_name = "FILEPATH")] raw_inputs: PathBuf, /// A file containing cbor hex for the raw outputs + #[clap(value_name = "FILEPATH")] raw_outputs: PathBuf, /// Time between each slot - #[clap(short, long, default_value_t = 1000)] + #[clap(short, long, default_value_t = 1000, value_name = "MILLISECOND")] slot_length: u32, /// Time of shelley hardfork - #[clap(long, default_value_t = 1596059091000)] + #[clap(long, default_value_t = 1596059091000, value_name = "POSIX")] zero_time: u64, /// Slot number at the start of the shelley hardfork - #[clap(long, default_value_t = 4492800)] + #[clap(long, default_value_t = 4492800, value_name = "SLOT")] zero_slot: u64, }