diff --git a/completers/ln_completer/cmd/root.go b/completers/ln_completer/cmd/root.go index a70940cd03..4948bd9529 100644 --- a/completers/ln_completer/cmd/root.go +++ b/completers/ln_completer/cmd/root.go @@ -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") @@ -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{