We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a9717 commit d5b558bCopy full SHA for d5b558b
lib/hexo.js
@@ -48,19 +48,11 @@ function entry(cwd = process.cwd(), args) {
48
49
return hexo.init();
50
}).then(() => {
51
- let cmd = '';
+ let cmd = 'help';
52
53
if (!args.h && !args.help) {
54
- cmd = args._.shift();
55
-
56
- if (cmd) {
57
- const c = hexo.extend.console.get(cmd);
58
- if (!c) cmd = 'help';
59
- } else {
60
- cmd = 'help';
61
- }
62
63
+ const c = args._.shift();
+ if (c && hexo.extend.console.get(c)) cmd = c;
64
}
65
66
watchSignal(hexo);
0 commit comments