Skip to content

Commit 0b5cd5b

Browse files
committed
change to -l and -r short flags
1 parent 3656bb4 commit 0b5cd5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ src/products/price.go -> src/orders/order_manager.go
169169
src/products/storage.go -> src/orders/order_manager.go
170170
```
171171

172-
Additionally, the `--overlap-left` (`-ol`) or `--overlap-right` (`-or`) arguments can be passed:
172+
Additionally, the `--overlap-left` (`-l`) or `--overlap-right` (`-r`) arguments can be passed:
173173
- `--overlap-left`: when the left and right glob patterns have some files in common, keep only the
174174
common files at the left, and discard them from the right. This flag is useful for retrieving any
175175
external dependencies of a specific folder:

cmd/explain.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func ExplainCmd(cfgF func() (*config.Config, error)) *cobra.Command {
2525
Args: cobra.ExactArgs(2),
2626
RunE: func(cmd *cobra.Command, args []string) error {
2727
if overlapLeft && overlapRight {
28-
return errors.New("only one of --overlap-left (-ol) or --overlap-right (-or) can be used at a time")
28+
return errors.New("only one of --overlap-left (-l) or --overlap-right (-r) can be used at a time")
2929
}
3030

3131
fromFiles, err := filesFromArgs([]string{args[0]})
@@ -102,8 +102,8 @@ func ExplainCmd(cfgF func() (*config.Config, error)) *cobra.Command {
102102
},
103103
}
104104

105-
cmd.Flags().BoolVarP(&overlapLeft, "overlap-left", "ol", false, "When there's an overlap between the files at the left and the right, keep the ones at the left")
106-
cmd.Flags().BoolVarP(&overlapRight, "overlap-right", "or", false, "When there's an overlap between the files at the left and the right, keep the ones at the right")
105+
cmd.Flags().BoolVarP(&overlapLeft, "overlap-left", "l", false, "When there's an overlap between the files at the left and the right, keep the ones at the left")
106+
cmd.Flags().BoolVarP(&overlapRight, "overlap-right", "r", false, "When there's an overlap between the files at the left and the right, keep the ones at the right")
107107

108108
return cmd
109109
}

0 commit comments

Comments
 (0)