Skip to content

Commit 17856b3

Browse files
committed
show help if invalid command
1 parent 718ecc8 commit 17856b3

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
@@ -396,10 +396,11 @@ def main():
396396

397397
args = parser.parse_args()
398398

399-
# try:
400-
args.func(args)
401-
# except:
402-
# parser.print_help()
399+
try:
400+
args.func(args)
401+
except:
402+
print('Unknown command.')
403+
parser.print_help()
403404

404405

405406
if __name__ == "__main__":

0 commit comments

Comments
 (0)