Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

totally insignificant

  • Loading branch information...
commit fb4e78664e183dbf72f04049cf8782986ff8f3e0 1 parent d01df94
@tricknik authored
Showing with 1 addition and 6 deletions.
  1. +0 −5 example.js
  2. +1 −1  example_test.js
View
5 example.js
@@ -25,8 +25,6 @@ operetta.on('positional', function(value) {
console.log('positional:', value);
});
-// Operetta has a special event binder called 'bind'
-// bind takes one or more options, a description and listener
operetta.parameters(["-t", "--test"], "A Test Argument", function(value) {
if (value == undefined) {
// if no value follows options value is undefined
@@ -36,9 +34,6 @@ operetta.parameters(["-t", "--test"], "A Test Argument", function(value) {
}
});
-// An optional forth argument sets the option as a flag.
-// it does not take a value and any arguments following it
-// should be treated as positional arguments
operetta.options("--flag", "A Test Option", function() {
console.log("Flagged!");
});
View
2  example_test.js
@@ -9,7 +9,7 @@ operetta.command("say", "Say Something", function(command) {
console.log(values);
});
});
-operetta.parameters(["-p","--param"], "A Paramater", function(value) {
+operetta.parameters(["-p","--param"], "A Parameter", function(value) {
console.log("Value:", value);
});
operetta.start(function(values) {
Please sign in to comment.
Something went wrong with that request. Please try again.