Skip to content

Commit

Permalink
Merge pull request #2283 from rsteube/ln-missing-flag
Browse files Browse the repository at this point in the history
ln: added missing flag
  • Loading branch information
rsteube authored Feb 29, 2024
2 parents 3d573c3 + fdc32c4 commit de860c8
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 de860c8

Please sign in to comment.