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

Extra newlines break docopt #12

Open
NateEag opened this issue Feb 1, 2015 · 0 comments
Open

Extra newlines break docopt #12

NateEag opened this issue Feb 1, 2015 · 0 comments

Comments

@NateEag
Copy link

NateEag commented Feb 1, 2015

Running the following program resulted in no output:

#! /usr/bin/env node

var docopt = require('docopt');

var doc = 'Usage:\n\n' +
           '  test.js [options] [<example-name>...]\n' +
           'Options:\n' +
           '  --url=url        URL to run the tests on.\n';

var options = docopt.docopt(doc);

I removed the second \n from the first line of the usage string, then the message was output as I expected when I ran the program.

This is with docopt 0.4.1, installed via npm.

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

1 participant