chore: Adds better checking for argv.
This commit is contained in:
parent
03a6ecbe02
commit
931da90f69
2 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,8 @@ export async function run(
|
||||||
axios: Axios,
|
axios: Axios,
|
||||||
apiKey: string,
|
apiKey: string,
|
||||||
) {
|
) {
|
||||||
|
if (argv.length == 1) return println("error: no arguments specified! run %s --help to see commands.\n", argv[0]);
|
||||||
|
|
||||||
const program = new SSHCommand(println);
|
const program = new SSHCommand(println);
|
||||||
program.description("Manages backends for NextNet");
|
program.description("Manages backends for NextNet");
|
||||||
program.version("v0.1.0-preprod");
|
program.version("v0.1.0-preprod");
|
||||||
|
|
|
@ -21,6 +21,8 @@ export async function run(
|
||||||
apiKey: string,
|
apiKey: string,
|
||||||
readKeyboard: KeyboardRead
|
readKeyboard: KeyboardRead
|
||||||
) {
|
) {
|
||||||
|
if (argv.length == 1) return println("error: no arguments specified! run %s --help to see commands.\n", argv[0]);
|
||||||
|
|
||||||
const program = new SSHCommand(println);
|
const program = new SSHCommand(println);
|
||||||
program.description("Manages users for NextNet");
|
program.description("Manages users for NextNet");
|
||||||
program.version("v1.0.0-testing");
|
program.version("v1.0.0-testing");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue