4 var ArgumentParser = require('../lib/argparse').ArgumentParser;
5 var parser = new ArgumentParser({
8 description: 'Argparse examples: constant'
16 help: 'store constant',
23 action: 'appendConst',
25 help: 'append constant "str" to types',
32 action: 'appendConst',
34 help: 'append constant "int" to types',
43 help: 'store true constant'
50 help: 'store false constant'
55 console.log('-----------');
58 args = parser.parseArgs('-a --str --int --true'.split(' '));