Skip to content

Commit

Permalink
Fix help text and add "json" as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenperera committed Sep 29, 2021
1 parent b56e9dc commit 25296c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub(crate) struct CliArgs {
long,
short,
default_value,
help = "The format for the output file, defaults to yaml, options are: 'yaml', 'json', 'k8s-json'"
help = "The format for the output file, defaults to yaml, options are: 'yaml', 'json-array', 'k8s-json'"
)]
pub(crate) format: Format,
}
Expand All @@ -73,6 +73,7 @@ impl FromStr for Format {
fn from_str(string: &str) -> Result<Self, Self::Err> {
match string.to_lowercase().as_ref() {
"yaml" => Ok(Self::Yaml),
"json" => Ok(Self::JsonArray),
"json-array" => Ok(Self::JsonArray),
"k8s-json" => Ok(Self::JsonK8s),
"kubernetes-json" => Ok(Self::JsonK8s),
Expand Down

0 comments on commit 25296c8

Please sign in to comment.