Rename get-local-path subcommand to get-path

This commit is contained in:
Jan Bader
2026-07-20 20:30:36 +02:00
parent eda8ba9aab
commit aaf7be0b90
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -132,13 +132,13 @@ func startMountInBackground(args []string, mountPoint string, quiet bool) error
return nil
}
func runGetLocalPathCommand(args []string, cfg config, password string) error {
flags := flag.NewFlagSet("get-local-path", flag.ExitOnError)
func runGetPathCommand(args []string, cfg config, password string) error {
flags := flag.NewFlagSet("get-path", flag.ExitOnError)
if err := flags.Parse(args); err != nil {
return err
}
if flags.NArg() != 1 {
return fmt.Errorf("usage: %s get-local-path <item-id-or-url>", filepath.Base(os.Args[0]))
return fmt.Errorf("usage: %s get-path <item-id-or-url>", filepath.Base(os.Args[0]))
}
mountPoint, err := ensureMounted(cfg, password)
if err != nil {