--max-transfer resulting in "non flag argument"?

What is the problem you are having with rclone?

I cannot utilize the command:

rclone copy -Pvv theirs: mine: --drive-server-side-across-configs –-max-transfer=700G --cutoff-mode=soft

as it results in this error:

Command copy needs 2 arguments maximum: you provided 3 non flag arguments: ["theirs:" "mine:" "–-max-transfer=700G"]

Run the command 'rclone version' and share the full output of the command.

rclone v1.60.1-DEV

  • os/version: gentoo 2.9 (64 bit)
  • os/kernel: 5.15.26-gentoo-whatbox (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.2
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

hi,
can you post the full debug output

copy/paste direct from the terminal, including the command

something like

user01@wsl01:~/rclone$ rclone version -vv
2022/12/14 15:31:44 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "version" "-vv"]
rclone v1.60.1
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.74.2-microsoft-standard-WSL2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.3
- go/linking: static
- go/tags: none
2022/12/14 15:31:44 DEBUG : rclone: Version "v1.60.1" finishing with parameters ["rclone" "version" "-vv"]

sure, sorry for omitting it originally

hotcereal@spirit ~ $ rclone version -vv

2022/12/14 20:50:57 DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["rclone" "version" "-vv"]

rclone v1.60.1-DEV

  • os/version: gentoo 2.9 (64 bit)

  • os/kernel: 5.15.26-gentoo-whatbox (x86_64)

  • os/type: linux

  • os/arch: amd64

  • go/version: go1.19.2

  • go/linking: dynamic

  • go/tags: none

2022/12/14 20:50:57 DEBUG : rclone: Version "v1.60.1-DEV" finishing with parameters ["rclone" "version" "-vv"]

sorry, i was not clear.

what i had meant is, produce the same styled output for your original command

ah, apologies.

hotcereal@spirit ~ $ rclone copy -Pvv theirs: mine:stash --drive-server-side-across-configs –-max-transfer=700G --cutoff-mode=soft
2022/12/14 20:55:50 DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["rclone" "copy" "-Pvv" "theirs:" "mine:stash" "--drive-server-side-across-configs" "–-max-transfer=700G" "--cutoff-mode=soft"]
Usage:
rclone copy source:path dest:path [flags]

Flags:
--create-empty-src-dirs Create empty source dirs on destination after copy
-h, --help help for copy

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command copy needs 2 arguments maximum: you provided 3 non flag arguments: ["theirs:" "mine:stash" "–-max-transfer=700G"]

i think there is a very subtle typo, two different hyphens

so try

--max-transfer=700G

and that fixed it! it seems the "issue" (or a feature by apple's standards) is macos automatically converting two dashes (--) into an em dash (—)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.