import getpass


def get_db_password(args):
	"""get db password from args or falls back to manual input with getpass."""
	if args.password is None:
		return getpass.getpass("Enter password for %s@%s (%s) : "%(args.username, args.host, args.database))

	return None