arso-project / sonar

A p2p content database and search engine
https://sonar.arso.xyz/
GNU General Public License v3.0
123 stars 6 forks source link

CLI: Error if command not found #26

Open Frando opened 4 years ago

Frando commented 4 years ago

When invoking the sonar cli with an invalid command, there's no error message. There should be one, otherwise you just wander what happened. Also it should exit with code 1.

Frando commented 4 years ago

This is partly fixed, but not fully. I really don't like yargs, we should switch so something else.