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

unmatched '(' #32

Closed
alexey-tyulkin opened this issue Apr 23, 2017 · 4 comments · Fixed by #111
Closed

unmatched '(' #32

alexey-tyulkin opened this issue Apr 23, 2017 · 4 comments · Fixed by #111
Labels
Milestone

Comments

@alexey-tyulkin
Copy link

using DocoptNet;
namespace ConsoleApplication1 {
    internal class Program {
        private static void Main(string[] args) {
            const string USAGE =
@"Usage: Conversion (load | brokers | loadnonxl | <pn>... [--clean]) [--whatif]

-h --help    show this
--verbose    print more text
";

            var docopt = new Docopt();
            var arguments = docopt.Apply(USAGE, args, exit: true);
        }
    }
}

prints
unmatched '('
but http://try.docopt.org/?doc=Usage%3A+Conversion+%28load+%7C+brokers+%7C+loadnonxl+%7C+%3Cpn%3E...+%5B--clean%5D%29+%5B--whatif%5D%0D%0A%0D%0A-h+--help++++show+this%0D%0A--verbose++++print+more+text&argv=dfg67+dfg4+dg2+--clean

parse it

@voieducode
Copy link
Member

voieducode commented Apr 23, 2017 via email

@alexey-tyulkin
Copy link
Author

There is additional example

unmatched '('

   private const string USAGE =
@"Usage: 
    copy_acl <masterid> ((--source|-s) <source>)... ((--target|-t) <target>)...  [--whatif] [--debugger] 

-h --help    show this
--verbose    print more text
";

@oliverholliday
Copy link

I have this also with any Usage block which includes multiple ...s

Usage
  configure [--key=NAME]... [--adminKey=NAME]...
> configure --key=one --key=two
unmatched '('

@voieducode
Copy link
Member

voieducode commented Sep 10, 2019 via email

atifaziz added a commit to atifaziz/docopt.net that referenced this issue Aug 24, 2021
@atifaziz atifaziz added the bug label Aug 24, 2021
@atifaziz atifaziz linked a pull request Aug 24, 2021 that will close this issue
voieducode pushed a commit that referenced this issue Aug 24, 2021
@atifaziz atifaziz added this to the 0.7.0.0 milestone Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants