IBM / aspera-cli

IBM Aspera CLI
Apache License 2.0
76 stars 17 forks source link

Unable to download - ERROR: Argument: missing argument: identifier (String) #158

Closed PietroD closed 1 month ago

PietroD commented 2 months ago

Hi

aspera-cli version 4.18.1

ascli faspex package recv \
--url=https://faspex.embl.de/aspera/faspex \
--user='xxx@xxx.it' \
--password='xxx' \
--id=ALL \
--once-only=yes \
--insecure=yes
ERROR: Argument: missing argument: identifier (String)
Use option -h to get help.
ERROR: Argument: unprocessed options: ["--id=ALL"]

I do not understand what the error is telling me. Thanks

laurent-martin commented 2 months ago

the recv command requires an argument. To receive all packages, specify ALL.

https://github.com/IBM/aspera-cli?tab=readme-ov-file#automated-package-download-cargo

ascli faspex package recv ALL ...

option id is deprecated now, use positional argument instead.

see release notes:

https://github.com/IBM/aspera-cli/blob/main/CHANGELOG.md

Breaking Changes:

global: Removed option id, deprecated since 4.14.0
ERROR: Argument: missing argument: identifier (String)

This means that a positional argument (i.e. not starting with --) is missing, and that it expects a String type.

ERROR: Argument: unprocessed options: ["--id=ALL"]

This means that this option was not used, either because it is unknown or there was an error before it is used.

PietroD commented 2 months ago

OMG thank you I thought --id ALL was equivalent. It's running now.

laurent-martin commented 2 months ago

It used to be equivalent, but it was deprecated for consistency with other commands. There is a rationale for that in the manual.