Skip to content

Commit 9c5741a

Browse files
committed
exit code 1 if unknown command
1 parent f2e8982 commit 9c5741a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ffmpeg_downloader/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from tempfile import mkdtemp
55
from shutil import rmtree
66
from ._progress import DownloadProgress, InstallProgress
7+
import sys
78

89

910
def _print_version_table(releases):
@@ -401,6 +402,7 @@ def main():
401402
except:
402403
print('Unknown command.')
403404
parser.print_help()
405+
sys.exit(1)
404406

405407

406408
if __name__ == "__main__":

0 commit comments

Comments
 (0)