Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

msikma/argparse-array-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom argparse formatter that allows multiple paragraph descriptions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published