Skip to content

Commit

Permalink
Remove shorthand for read-only mounts (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 authored Feb 21, 2024
1 parent 6dcf3ea commit 2ee0048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func addMountFlags(cmd *cobra.Command) {
cmd.Flags().StringP("password", "p", "", "Password to use for authentication (cifs mounts only)")
cmd.Flags().StringP("version", "v", "", "Version to use for the mount (cifs mounts only)")
cmd.Flags().StringP("path", "a", "", "Path to mount (nfs mounts only)")
cmd.Flags().BoolP("read-only", "ro", false, "Is mount read-only (not available for backup mounts)")
cmd.Flags().Bool("read-only", false, "Is mount read-only (not available for backup mounts)")

cmd.Flags().Lookup("read-only").NoOptDefVal = "true"
cmd.RegisterFlagCompletionFunc("type", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
Expand Down

0 comments on commit 2ee0048

Please sign in to comment.