Skip to content

Commit 8cb9d01

Browse files
committed
feat: accept flags as an object as well
1 parent a18b04d commit 8cb9d01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/daemon.js

+3
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ class Node {
201201
callback = flags
202202
flags = []
203203
}
204+
if (typeof flags === 'object' && Object.keys(flags).length === 0) {
205+
flags = []
206+
}
204207

205208
const args = ['daemon'].concat(flags)
206209

0 commit comments

Comments
 (0)