wal: Show usage when no args passed

This commit is contained in:
Dylan Araps 2018-06-23 08:31:39 +10:00
parent 63d8a92e4f
commit d49caeebfb

View File

@ -104,7 +104,8 @@ def parse_args_exit(parser):
args = parser.parse_args()
if not len(sys.argv) > 1:
parser.error("wal needs to be given arguments to run.")
parser.print_help()
sys.exit(1)
if args.v:
parser.exit(0, "wal %s\n" % __version__)