Skip to content

Commit ded831e

Browse files
authoredNov 29, 2022
fix: path and slug should be string (#432)
1 parent 5c5fc8f commit ded831e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/hexo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import versionConsole from './console/version';
1515
class HexoNotFoundError extends Error {}
1616

1717
function entry(cwd = process.cwd(), args) {
18-
args = camelCaseKeys(args || minimist(process.argv.slice(2), { string: ['_'] }));
18+
args = camelCaseKeys(args || minimist(process.argv.slice(2), { string: ['_', 'p', 'path', 's' ,'slug'] }));
1919

2020
let hexo = new Context(cwd, args);
2121
let { log } = hexo;

0 commit comments

Comments
 (0)
Please sign in to comment.