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

Array values duplicated with OneOrMore options (...) #77

Open
ps78674 opened this issue Jan 25, 2021 · 1 comment
Open

Array values duplicated with OneOrMore options (...) #77

ps78674 opened this issue Jan 25, 2021 · 1 comment

Comments

@ps78674
Copy link

ps78674 commented Jan 25, 2021

The following usage

Usage:
  %[1]s [-u <URL>...] (-D <DOMAINFILE> [-V <VOLUMEFILE> -p <STORAGEPOOL> --start])
  %[1]s [-u <URL>...] (-V <VOLUMEFILE> [-p <STORAGEPOOL>])
  %[1]s [-u <URL>...] (--domdata <DOMAINDATA> [--voldata <VOLUMEDATA> -p <STORAGEPOOL>] --start)
  %[1]s [-u <URL>...] (--voldata <VOLUMEDATA> [-p <STORAGEPOOL>])
  %[1]s [-u <URL>...] (-R <DOMAINNAME>)

Options:
  -u, --url <URL>            server url [default: qemu:///system]
*******

with cli opts -u qemu+ssh://user@hostname/system -u test
produces array with duplicated 2-nd value: [qemu+ssh://user@hostname/system test test test test test]

@Sylvain303
Copy link

Hello, very interesting. Could you explain what introduced the duplication? I suppose it's related to multiple line of usage linked with the options definition.

Very nice catch. I also tested on line

Docopt online

Bug here too.

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

Successfully merging a pull request may close this issue.

2 participants