start without requiring start
This commit is contained in:
parent
f7752ec016
commit
a9814fd150
1 changed files with 10 additions and 1 deletions
11
src/index.ts
11
src/index.ts
|
|
@ -65,5 +65,14 @@ const argv = yargs(hideBin(process.argv))
|
||||||
default: 'config/nsecbunker.json',
|
default: 'config/nsecbunker.json',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.demandCommand(0, 1)
|
|
||||||
.parse();
|
.parse();
|
||||||
|
|
||||||
|
// Check if a command is provided, if not, default to 'start'
|
||||||
|
if (!argv._[0]) {
|
||||||
|
start({
|
||||||
|
keys: [],
|
||||||
|
verbose: false,
|
||||||
|
config: argv.config as string,
|
||||||
|
adminNpubs: adminNpubs
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue