Skip to content

Commit 148b4c3

Browse files
committed
feat(flag): help stub added
1 parent 7b5269c commit 148b4c3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const load = async () => {
2121
// start the menu
2222
new Menu(cliWallet, cliConnection);
2323
};
24+
25+
const help = async () => {
26+
clear();
27+
console.log("Squads CLI is in alpha, more commands and options are in progress.")
28+
console.log("For more information, visit https://github.com/squads-protocol/squads-cli");
29+
};
30+
2431
// console.log(process.argv[2]);
2532
const option = process.argv[2];
2633
switch(option){
@@ -29,6 +36,14 @@ switch(option){
2936
console.log("Squads CLI version: " + pjson.version);
3037
break;
3138

39+
case "-h":
40+
help();
41+
break;
42+
43+
case "--help":
44+
help();
45+
break;
46+
3247
default:
3348
clear();
3449
load();

0 commit comments

Comments
 (0)