
"""Console script for postalcodes_mexico."""
import sys
import click


@click.command()
def main(args=None):
    """Console script for postalcodes_mexico."""
    click.echo("Replace this message by putting your code into "
               "postalcodes_mexico.cli.main")
    click.echo("See click documentation at http://click.pocoo.org/")
    return 0


if __name__ == "__main__":
    sys.exit(main())  # pragma: no cover


"""Console script for postalcodes_mexico."""
import sys
import click

from postalcodes_mexico import postalcodes_mexico


@click.command()
@click.argument('postalcode', type=str)
def main(postalcode):
    """Console script for postalcodes_mexico."""
    places = postalcodes_mexico.places(postalcode)
    click.echo(places)
    return 0


if __name__ == "__main__":
    sys.exit(main())  # pragma: no cover

Create simple CLI for the `places` function
Create simple CLI for the `places` function

  
  """Console script for postalcodes_mexico."""
  import sys
  import click
  
+ from postalcodes_mexico import postalcodes_mexico
+ 
  
  @click.command()
- def main(args=None):
+ @click.argument('postalcode', type=str)
+ def main(postalcode):
      """Console script for postalcodes_mexico."""
+     places = postalcodes_mexico.places(postalcode)
+     click.echo(places)
-     click.echo("Replace this message by putting your code into "
-                "postalcodes_mexico.cli.main")
-     click.echo("See click documentation at http://click.pocoo.org/")
      return 0
  
  
  if __name__ == "__main__":
      sys.exit(main())  # pragma: no cover
  
Create simple CLI for the `places` function
## Code Before:

"""Console script for postalcodes_mexico."""
import sys
import click


@click.command()
def main(args=None):
    """Console script for postalcodes_mexico."""
    click.echo("Replace this message by putting your code into "
               "postalcodes_mexico.cli.main")
    click.echo("See click documentation at http://click.pocoo.org/")
    return 0


if __name__ == "__main__":
    sys.exit(main())  # pragma: no cover

## Instruction:
Create simple CLI for the `places` function
## Code After:

"""Console script for postalcodes_mexico."""
import sys
import click

from postalcodes_mexico import postalcodes_mexico


@click.command()
@click.argument('postalcode', type=str)
def main(postalcode):
    """Console script for postalcodes_mexico."""
    places = postalcodes_mexico.places(postalcode)
    click.echo(places)
    return 0


if __name__ == "__main__":
    sys.exit(main())  # pragma: no cover
