Commit 3f0677b8 authored by Jgiannelos's avatar Jgiannelos
Browse files

Use entrypoints to define the CLI util

parent 5c1da674
...@@ -13,5 +13,8 @@ setup( ...@@ -13,5 +13,8 @@ setup(
], ],
package_dir={"": "src"}, package_dir={"": "src"},
packages=find_packages(where="src"), packages=find_packages(where="src"),
python_requires=">=3.7" python_requires=">=3.7",
entry_points={
"console_scripts": ["maps-simplified-tilelist=tileset.cli:main"],
},
) )
...@@ -3,7 +3,7 @@ import argparse ...@@ -3,7 +3,7 @@ import argparse
from tileset import TileSet from tileset import TileSet
if __name__ == "__main__": def main():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description="Given a tile list as input, generate a distinct " description="Given a tile list as input, generate a distinct "
"list of map tiles consisted of all the parent and children tiles " "list of map tiles consisted of all the parent and children tiles "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment