chore: Adds better checking for argv.

This commit is contained in:
greysoh 2024-05-08 11:53:40 -04:00
parent 03a6ecbe02
commit 931da90f69
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,8 @@ export async function run(
axios: Axios,
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);
program.description("Manages backends for NextNet");
program.version("v0.1.0-preprod");

View file

@ -21,6 +21,8 @@ export async function run(
apiKey: string,
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);
program.description("Manages users for NextNet");
program.version("v1.0.0-testing");