def _require_host_parameter(args, to):
    """
    Make sure, that user specified --host argument.
    """
    if not args.host:
        sys.stderr.write("--host is required parameter to --%s\n" % to)
        sys.exit(1)
Make sure, that user specified --host argument.