Skip to content

Commit 50bc104

Browse files
authored
Added aliases to help and version flags. (#11)
1 parent 71939cd commit 50bc104

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bin/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,16 @@ const cli = meow(
2222
`,
2323
{
2424
'flags': {
25-
'autoHelp': true,
26-
'autoVersion': true
25+
'help': {
26+
'alias': 'h',
27+
'default': false,
28+
'type': 'boolean'
29+
},
30+
'version': {
31+
'alias': 'v',
32+
'default': false,
33+
'type': 'boolean'
34+
}
2735
}
2836
}
2937
);

0 commit comments

Comments
 (0)