Websocket
[VSoRC/.git] / node_modules / node-static / node_modules / optimist / example / usage-options.js
diff --git a/node_modules/node-static/node_modules/optimist/example/usage-options.js b/node_modules/node-static/node_modules/optimist/example/usage-options.js
new file mode 100644 (file)
index 0000000..b999977
--- /dev/null
@@ -0,0 +1,19 @@
+var optimist = require('./../index');
+
+var argv = optimist.usage('This is my awesome program', {
+  'about': {
+    description: 'Provide some details about the author of this program',
+    required: true,
+    short: 'a',
+  },
+  'info': {
+    description: 'Provide some information about the node.js agains!!!!!!',
+    boolean: true,
+    short: 'i'
+  }
+}).argv;
+
+optimist.showHelp();
+
+console.log('\n\nInspecting options');
+console.dir(argv);
\ No newline at end of file