I have created a CLI with yargs. It has a series of nested commands. All the commands work nicely, but I also want to have a welcome/info message when no command is given or if a command that does not exist is supplied.
I have been unable to get this to work, what efforts I have used either display a message all the time or not at all. Any suggestions would be welcome