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

sdc-* commands have weird parsing confusion #63

Open
bahamat opened this issue Apr 18, 2015 · 1 comment
Open

sdc-* commands have weird parsing confusion #63

bahamat opened this issue Apr 18, 2015 · 1 comment

Comments

@bahamat
Copy link
Contributor

bahamat commented Apr 18, 2015

While attempting to list all deleted machines, I saw this:

$ sdc-listmachines --tombsotne
--offset is invalid metadata; try foo=bar

After a few minutes I realized I had misspelled --tombstone as --tombsotne. My initial problem was solved, but that still left the matter of the odd error message.

With a bit of trial and error, I finally figured out what's going on. Running sdc-* --t* where what comes after --t is not one of tag, type or tombstone, the --t gets expanded to --tags, then the rest of the string gets converted to other long forms, in this case the o gets expanded to --offset.

This happens any time where the first character is t and the second character is any of the short options.

@dwlf
Copy link
Contributor

dwlf commented Apr 18, 2015

@bahamat wow, nice job narrowing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants