Skip to content

Commit e8264eb

Browse files
committed
rename overwriteOutput param to replaceOutput
1 parent cb5edda commit e8264eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ you can also use shorter aliases, e.g.:
3232
atlas tf clu2adv -f in.tf -o out.tf
3333
```
3434

35-
If you want to overwrite the output file if it exists, or even use the same output file as the input file, use the `--overwriteOutput true` or the `-w` flag.
35+
If you want to overwrite the output file if it exists, or even use the same output file as the input file, use the `--replaceOutput true` or the `-r` flag.
3636

3737
### Limitations
3838

internal/cli/clu2adv/clu2adv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ func Builder() *cobra.Command {
2323
_ = cmd.MarkFlagRequired("file")
2424
cmd.Flags().StringVarP(&o.output, "output", "o", "", "output file")
2525
_ = cmd.MarkFlagRequired("output")
26-
cmd.Flags().BoolVarP(&o.overwriteOutput, "overwriteOutput", "w", false, "overwrite output file if exists")
26+
cmd.Flags().BoolVarP(&o.replaceOutput, "replaceOutput", "r", false, "replace output file if exists")
2727
return cmd
2828
}

internal/cli/clu2adv/opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type opts struct {
1212
fs afero.Fs
1313
file string
1414
output string
15-
overwriteOutput bool
15+
replaceOutput bool
1616
}
1717

1818
func (o *opts) PreRun() error {

0 commit comments

Comments
 (0)