Skip to content

[list] argument parsing does not work as expected #622

@nanjiangshu

Description

@nanjiangshu

Describe the bug
Argument parsing for the list command does not work as expected.

For example:
To list files in a dataset with the following command is failed with the error Invalid base URL

./sda-cli-v0.3.0 --config s3cmd-bp-download.conf list  --dataset aa-Dataset-dy2tsg-9hvt2a --url https://download.bp.nbis.se 

However, the command works if you switch the flag for --dataset and --url

./sda-cli-v0.3.0 --config s3cmd-bp-download.conf list   --url https://download.bp.nbis.se  --dataset aa-Dataset-dy2tsg-9hvt2a

Moreover, one get and 404 error for

./sda-cli-v0.3.0 --config s3cmd-bp-download.conf list  --url https://download.bp.nbis.se  --dataset aa-Dataset-dy2tsg-9hvt2a   --bytes

Steps to reproduce

Expected behavior

  • Tests verifying the fix are added
  • Readme is up to date with the latest release

Additional context

Version of sda-cli: v0.3.0

Estimation of size: small/medium/big

Estimation of priority: low/medium/high

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions