argparse-array-formatter

1.0.0 • Public • Published

argparse-array-formatter

A custom formatter that allows you to use multiple paragraphs in your JS argparse descriptions.

This depends on implementation details of argparse, so it could break in future versions. At the moment, it works with 1.0.2.

Example

var ArgumentParser = require('argparse').ArgumentParser;
var ArrFormatter = require('argparse-array-formatter');
 
var parser = new ArgumentParser({
  'version': '1.0.0',
  'addHelp': true,
  'customFormatter': ArrFormatter,
  'description': ['Paragraph 1. Make it as long as you like.', 'Paragraph 2.']
});

As with normal description strings, the width is limited to 80 characters for readability.

Copyright

© 2015, MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i argparse-array-formatter

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • msikma