mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
See more about docopt at http://docopt.org/ This is specific for the library at https://www.npmjs.com/package/docopt
12 lines
370 B
TypeScript
12 lines
370 B
TypeScript
/// <reference path="docopt.d.ts" />
|
|
/// <reference path="../node/node.d.ts" />
|
|
|
|
var doc = `
|
|
Usage:
|
|
quick_example.coffee tcp <host> <port> [--timeout=<seconds>]
|
|
quick_example.coffee serial <port> [--baud=9600] [--timeout=<seconds>]
|
|
quick_example.coffee -h | --help | --version
|
|
`;
|
|
var {docopt} = require('docopt');
|
|
console.log(docopt(doc, { version: '0.1.1rc' }));
|