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,
|
||||
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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue