

def execute_from_command_line(argv=None):
    'A simple method that runs a Command.'
    if (sys.stdout.encoding is None):
        print('please set python env PYTHONIOENCODING=UTF-8, example: export PYTHONIOENCODING=UTF-8, when writing to stdout', file=sys.stderr)
        exit(1)
    command = Command(argv)
    command.execute()

dataset/ETHPy150Open joke2k/faker/faker/cli.py execute_from_command_line/original