Skip to content

Commit 03a50c3

Browse files
committed
update cli options
1 parent 27114b6 commit 03a50c3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/10-cli.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ class CommandName extends AbstractCommand {
115115
export default CommandName;
116116
```
117117

118+
:::tip
119+
120+
For boolean types, we also support negative values (without a prefix).
121+
122+
```js
123+
update: {
124+
type: "boolean",
125+
},
126+
```
127+
```bash
128+
node src/cli.ts ourCommand --update
129+
```
130+
Update Argument will by true
131+
132+
```bash
133+
node src/cli.ts ourCommand --no-update
134+
```
135+
update argumant will be false
136+
137+
:::
138+
118139
## Framework Commands
119140

120141
The framework comes with a few built-in commands.

0 commit comments

Comments
 (0)