Skip to content

Commit

Permalink
refactor: improve value names for parameters and tags
Browse files Browse the repository at this point in the history
This makes the `parameters` and `tags` usage output more self-describing
and less dependent on the prose.
  • Loading branch information
connec committed Oct 31, 2022
1 parent 24430cc commit 0ce100e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/command/apply_stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ pub struct Args {
package_prefix: Option<String>,

/// A list of input parameters for the stack.
///
/// Parameters should be supplied as `key=value` strings.
#[clap(long, num_args(1..))]
#[clap(long, num_args(1..), value_name("KEY=VALUE"))]
parameters: Vec<ParameterArg>,

/// Disable informational output to STDERR.
Expand All @@ -98,8 +96,8 @@ pub struct Args {
/// Key-value pairs to associate with this stack.
///
/// Tags should be supplied either as `key=value` strings and/or as a JSON object (e.g.
/// `{"key1": "value1", "key2": "value2"}). JSON is tried first.
#[clap(long, num_args(1..))]
/// `{"key1": "value1", "key2": "value2"}).
#[clap(long, num_args(1..), value_name("KEY=VALUE|JSON"))]
tags: Vec<TagArg>,

/// Path to the template to be applied.
Expand Down

0 comments on commit 0ce100e

Please sign in to comment.