Skip to content

Commit cb5320c

Browse files
committed
feat(args.default): add a default argument for %args% placeholder
1 parent 52ce6b1 commit cb5320c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ const exitHandler = code => {
153153
}
154154
};
155155

156+
// Default args given!
157+
if (args.length === 0 && cliAction.args !== undefined) {
158+
args.push(cliAction.args);
159+
}
160+
156161
// Run commands synchronously one after another!
157162
cliAction.command.forEach(command => {
158163
if (program.verbose) {

0 commit comments

Comments
 (0)