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"
35
35
Pull_Requests = " https://github.com/python-ffmpegio/python-ffmpegio-downloader/pulls"
36
36
37
37
[project .scripts ]
38
- ffdl = " ffmpeg_downloader.__main__:main "
38
+ ffdl = " ffmpeg_downloader.ffdl:run "
39
39
40
40
[project .gui-scripts ]
41
41
ffdl-gui = " ffmpeg_downloader.qt.__main__:main"
Original file line number Diff line number Diff line change @@ -249,9 +249,11 @@ def show(args):
249
249
pass
250
250
251
251
252
- def main ():
252
+ def main (prog : str ):
253
253
# 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
+ )
255
257
256
258
parser .add_argument (
257
259
"--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