We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a685251 commit acff65bCopy full SHA for acff65b
bin/marked
@@ -32,6 +32,11 @@ function help() {
32
});
33
}
34
35
+function version() {
36
+ var pkg = require('../package.json');
37
+ console.log(pkg.version);
38
+}
39
+
40
/**
41
* Main
42
*/
@@ -98,6 +103,9 @@ function main(argv, callback) {
98
103
case '-h':
99
104
case '--help':
100
105
return help();
106
+ case '-v':
107
+ case '--version':
108
+ return version();
101
109
default:
102
110
if (arg.indexOf('--') === 0) {
111
opt = camelize(arg.replace(/^--(no-)?/, ''));
0 commit comments