Skip to content

Commit 9d2cf48

Browse files
committed
fixed to display help
1 parent 9cdaf0f commit 9d2cf48

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ffmpeg_downloader/__main__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,11 @@ def main():
395395

396396
args = parser.parse_args()
397397

398-
print(args)
399-
400-
args.func(args)
398+
if "func" in args:
399+
args.func(args)
400+
else:
401+
parser.print_help()
401402

402403

403404
if __name__ == "__main__":
404-
main()
405+
main("python -m ffmpeg_downloader")

0 commit comments

Comments
 (0)