mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
node_modules
This commit is contained in:
parent
6fa46f4e34
commit
680eb33f0d
4375 changed files with 1042080 additions and 6 deletions
23
node_modules/argparse/examples/prefix_chars.js
generated
vendored
Normal file
23
node_modules/argparse/examples/prefix_chars.js
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
|
||||
var ArgumentParser = require('../lib/argparse').ArgumentParser;
|
||||
var parser = new ArgumentParser({
|
||||
version: '0.0.1',
|
||||
addHelp: true,
|
||||
description: 'Argparse examples: prefix_chars',
|
||||
prefixChars: '-+'
|
||||
});
|
||||
parser.addArgument(['+f', '++foo']);
|
||||
parser.addArgument(['++bar'], {action: 'storeTrue'});
|
||||
|
||||
parser.printHelp();
|
||||
console.log('-----------');
|
||||
|
||||
var args;
|
||||
args = parser.parseArgs(['+f', '1']);
|
||||
console.dir(args);
|
||||
args = parser.parseArgs(['++bar']);
|
||||
console.dir(args);
|
||||
args = parser.parseArgs(['++foo', '2', '++bar']);
|
||||
console.dir(args);
|
Loading…
Add table
Add a link
Reference in a new issue