File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Issues = "https://github.com/python-ffmpegio/python-ffmpegio-downloader/issues"
3535Pull_Requests = " https://github.com/python-ffmpegio/python-ffmpegio-downloader/pulls"
3636
3737[project .scripts ]
38- ffdl = " ffmpeg_downloader.__main__:main "
38+ ffdl = " ffmpeg_downloader.ffdl:run "
3939
4040[project .gui-scripts ]
4141ffdl-gui = " ffmpeg_downloader.qt.__main__:main"
Original file line number Diff line number Diff line change @@ -249,9 +249,11 @@ def show(args):
249249 pass
250250
251251
252- def main ():
252+ def main (prog : str ):
253253 # create the top-level parser
254- parser = argparse .ArgumentParser (description = "Download and manage FFmpeg prebuilds" )
254+ parser = argparse .ArgumentParser (
255+ prog = prog , description = "Download and manage FFmpeg prebuilds"
256+ )
255257
256258 parser .add_argument (
257259 "--proxy" ,
Original file line number Diff line number Diff line change 1+ from .__main__ import main
2+
3+
4+ def run ():
5+ main ("ffdl" )
You can’t perform that action at this time.
0 commit comments