mirror of
https://github.com/drewcassidy/Pillow-mbm.git
synced 2024-09-01 14:44:04 +00:00
rename command function
This commit is contained in:
parent
dbcbf88872
commit
46572bb7c5
@ -68,7 +68,7 @@ def path_pairs(inputs, output, suffix, extension):
|
|||||||
help="Output file or directory. If outputting to a file, input filenames must be only a single item. By default, files are decoded in place.")
|
help="Output file or directory. If outputting to a file, input filenames must be only a single item. By default, files are decoded in place.")
|
||||||
@click.argument('filenames', nargs=-1, type=click.Path(exists=True, readable=True, dir_okay=False))
|
@click.argument('filenames', nargs=-1, type=click.Path(exists=True, readable=True, dir_okay=False))
|
||||||
@click.version_option(version=pillow_mbm.__version__)
|
@click.version_option(version=pillow_mbm.__version__)
|
||||||
def decode(flip, remove, suffix, extension, output, filenames):
|
def convert_mbm(flip, remove, suffix, extension, output, filenames):
|
||||||
"""Decode Kerbal Space Program MBM files"""
|
"""Decode Kerbal Space Program MBM files"""
|
||||||
|
|
||||||
pairs = path_pairs(filenames, output, suffix, extension)
|
pairs = path_pairs(filenames, output, suffix, extension)
|
||||||
@ -87,4 +87,4 @@ def decode(flip, remove, suffix, extension, output, filenames):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
decode()
|
convert_mbm()
|
||||||
|
2
setup.py
2
setup.py
@ -18,7 +18,7 @@ setup(
|
|||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
install_requires=['Pillow', 'click'],
|
install_requires=['Pillow', 'click'],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': ['convert-mbm = pillow_mbm.__main__:decode']
|
'console_scripts': ['convert-mbm = pillow_mbm.__main__:convert_mbm']
|
||||||
},
|
},
|
||||||
package_dir={'': '.'},
|
package_dir={'': '.'},
|
||||||
packages=['pillow_mbm'],
|
packages=['pillow_mbm'],
|
||||||
|
Loading…
Reference in New Issue
Block a user