config.py, print help if no arguments provided

This commit is contained in:
nsubiron 2019-07-09 17:36:20 +02:00 committed by Néstor Subirón
parent 2c6df3b5a2
commit d66e08c2b5
1 changed files with 5 additions and 0 deletions

View File

@ -175,6 +175,11 @@ def main():
'-b', '--list-blueprints',
metavar='FILTER',
help='list available blueprints matching FILTER (use \'*\' to list them all)')
if len(sys.argv) < 2:
argparser.print_help()
return
args = argparser.parse_args()
client = carla.Client(args.host, args.port, worker_threads=1)