Skip to content

Commit a44e321

Browse files
committed
✨ tweak: update cli.js with flags configuration
1 parent 88a1768 commit a44e321

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

source/cli.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,29 @@ const cli = meow(
88
`
99
Usage
1010
$ magicc
11+
12+
Options
13+
--setopenai, -s OpenAI API key
14+
--delopenai, -d Delete OpenAI API key
15+
--help Show help
16+
--version Show version
17+
18+
Examples
19+
$ magicc -s=sk-<api-key>
1120
`,
1221
{
1322
importMeta: import.meta,
23+
flags: {
24+
setopenai: {
25+
type: 'string',
26+
alias: 's',
27+
},
28+
delopenai: {
29+
type: 'boolean',
30+
alias: 'd',
31+
},
32+
},
1433
},
1534
);
1635

17-
render(<App/>);
36+
render(<App flags={cli.flags}/>);

0 commit comments

Comments
 (0)