Skip to content

Commit

Permalink
ln: added missing flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Feb 29, 2024
1 parent 3d573c3 commit fdc32c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions completers/ln_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func Execute() error {
func init() {
carapace.Gen(rootCmd).Standalone()

rootCmd.Flags().BoolS("F", "F", false, "allow the superuser to attempt to hard link directories")
rootCmd.Flags().BoolS("b", "b", false, "like --backup but does not accept an argument")
rootCmd.Flags().String("backup", "", "make a backup of each existing destination file")
rootCmd.Flags().BoolP("directory", "d", false, "allow the superuser to attempt to hard link directories")
Expand All @@ -35,6 +36,7 @@ func init() {
rootCmd.Flags().BoolP("verbose", "v", false, "print name of each linked file")
rootCmd.Flags().Bool("version", false, "output version information and exit")

rootCmd.MarkFlagsMutuallyExclusive("directory", "F")
rootCmd.Flag("backup").NoOptDefVal = " "

carapace.Gen(rootCmd).FlagCompletion(carapace.ActionMap{
Expand Down

0 comments on commit fdc32c4

Please sign in to comment.