Skip to content

Commit

Permalink
Merge pull request OpenShot#2409 from ferdnyc/frozen-cmdline
Browse files Browse the repository at this point in the history
launch.py: Exit using sys.exit()
  • Loading branch information
peanutbutterandcrackers authored Nov 30, 2018
2 parents e8633bf + d9dcfd0 commit 612c313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,20 @@ def main():
# Display version and exit (if requested)
if args.version:
print("OpenShot version %s" % info.SETUP['version'])
exit()
sys.exit()

if args.list_languages:
print("Supported Languages:")
for lang in get_all_languages():
print(" {:>12} {}".format(lang[0],lang[1]))
exit()
sys.exit()

if args.lang:
if args.lang in info.SUPPORTED_LANGUAGES:
info.CMDLINE_LANGUAGE = args.lang
else:
print("Unsupported language '{}'! (See --list-languages)".format(args.lang))
exit(-1)
sys.exit(-1)

reroute_output()

Expand Down

0 comments on commit 612c313

Please sign in to comment.