Better error handling in cli.
Make sure use gets argument.