start without requiring start

This commit is contained in:
Pablo Fernandez 2024-01-31 13:32:50 +00:00
parent f7752ec016
commit a9814fd150

View File

@ -65,5 +65,14 @@ const argv = yargs(hideBin(process.argv))
default: 'config/nsecbunker.json',
},
})
.demandCommand(0, 1)
.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
});
}