Skip to content

Confusing error message if center name contains spaces #148

@corneliusroemer

Description

@corneliusroemer

I'm not quite sure why I'm getting an error message for this command:

$ ena-webin-cli -username=Webin-66038 -centername='University of Test' -submit -context=genome -manifest='/var/folders/z6/j6fz8zq10rj35_kc0zy_f28w0000gn/T/tmpi9rr1sqo.tsv' -outputdir='/var/folders/z6/j6fz8zq10rj35_kc0zy_f28w0000gn/T/tmptvsx5wan' -test -password=1234
exit_code=$?
echo "Command exited with code: $exit_code"
ERROR: Unmatched arguments from index 2: 'of', 'Test'
INFO : Please use -help option to see all command line options.
Command exited with code: 0

The help text clearly shows one can use -centername=CENTER and that's what I'm passing.

Note, the error doesn't happen when there are no spaces inside the center name:

ena-webin-cli -username=Webin-66038 -centername='University' -submit -context=genome -manifest='/var/folders/z6/j6fz8zq10rj35_kc0zy_f28w0000gn/T/tmpi9rr1sqo.tsv' -test -password=1234
exit_code=$?
echo "Command exited with code: $exit_code"
INFO : Your application version is 8.2.0
ERROR: Invalid submission account user name or password. Please try enclosing your password in single quotes.
INFO : Creating report file: /var/folders/z6/j6fz8zq10rj35_kc0zy_f28w0000gn/T/./webin-cli.report
Command exited with code: 0

The exit code is wrong in all cases above, see #147 for that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions