Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmytri Kleiner
committed
Dec 18, 2010
1 parent
a95d275
commit c90dfcd
Showing
2 changed files
with
73 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
require.paths.push('.'); | ||
|
||
var Operetta = require('operetta').Operetta; | ||
|
||
var args = ['test', 'hello', | ||
'-t', '-tclosetest', '-xtcloser', '-xt', 'another', 'test', '--test', 'long', 'test', | ||
'-t', 'short', 'test', '--test=equals_test','--flag','/path/to/some/file']; | ||
|
||
console.log("[", args.join(" "), "]\n"); | ||
|
||
var operetta = new Operetta(args); | ||
operetta.command('say', function(command) { | ||
command.start(function(values) { | ||
console.log(values); | ||
}); | ||
}); | ||
|
||
operetta.start(); | ||
|
||
operetta.usage(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters