Skip to content

Commit

Permalink
accept lowercase o
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Jan 21, 2025
1 parent 11b079b commit 78f8653
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion site/src/content/docs/commands/zarf_package_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ zarf package list [flags]

```
-h, --help help for list
--output-format string Prints the output in the specified format. Valid options: table, json, yaml (default "table")
-o, --output-format string Prints the output in the specified format. Valid options: table, json, yaml (default "table")
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion site/src/content/docs/commands/zarf_tools_get-creds.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ zarf tools get-creds artifact

```
-h, --help help for get-creds
--output-format string Prints the output in the specified format. Valid options: table, json, yaml (default "table")
-o, --output-format string Prints the output in the specified format. Valid options: table, json, yaml (default "table")
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func NewPackageListCommand() *cobra.Command {
RunE: o.Run,
}

cmd.Flags().StringVar(&o.outputFormat, "output-format", "table", "Prints the output in the specified format. Valid options: table, json, yaml")
cmd.Flags().StringVarP(&o.outputFormat, "output-format", "o", "table", "Prints the output in the specified format. Valid options: table, json, yaml")

return cmd
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/tools/zarf.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewGetCredsCommand() *cobra.Command {
RunE: o.Run,
}

cmd.Flags().StringVar(&o.outputFormat, "output-format", "table", "Prints the output in the specified format. Valid options: table, json, yaml")
cmd.Flags().StringVarP(&o.outputFormat, "output-format", "o", "table", "Prints the output in the specified format. Valid options: table, json, yaml")

return cmd
}
Expand Down

0 comments on commit 78f8653

Please sign in to comment.