8000 Adds `--help` that prints available commands · arduino/micropython.js@00897ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 00897ee

Browse files
committed
Adds --help that prints available commands
1 parent a92d9c5 commit 00897ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ const operations = {
198198
'--getfile': getFile,
199199
'--removefile': removeFile,
200200
'--removefolder': removeFolder,
201-
'--verbose': () => false
201+
'--verbose': () => false,
202+
'--help': () => console.log(Object.keys(operations))
202203
}
203204

204205
let args = extractArguments(process.argv)

0 commit comments

Comments
 (0)
0