Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[list] argument parsing error when using the-bytes flag #491

Open
3 tasks
nanjiangshu opened this issue Jan 15, 2025 · 0 comments
Open
3 tasks

[list] argument parsing error when using the-bytes flag #491

nanjiangshu opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nanjiangshu
Copy link
Contributor

Describe the bug
The command exits with an error when the -bytes flag is placed at the end of the command

Steps to reproduce
The command

/sda-cli  -config s3cmd-gdi.conf  list  -datasets  -url "https://staging-download.gdi.nbis.se"  -byte

returns an error Error: invalid base URL

But this one works

./sda-cli  -config tmp/s3cmd-gdi.conf  list  -datasets  -bytes  -url "https://staging-download.gdi.nbis.se"

and returns the correct result

DatasetID                                	 Files 	 Size
GDID-12345678-11se 	 441 	 1670980823478

Expected behavior

  • Arguments of the list command should be parsed correctly
  • Tests verifying the fix are added

Additional context

Estimation of size: small/medium/big

Estimation of priority: low/medium/high

@nanjiangshu nanjiangshu added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant