add sys.exit(main()) to file_contents_sorter.py

This commit is contained in:
Squeaky 2019-08-03 18:46:28 +02:00
parent 9ce6b9facb
commit 1bfdf7f62c

View file

@ -12,6 +12,7 @@ conflicts and keep the file nicely ordered.
from __future__ import print_function from __future__ import print_function
import argparse import argparse
import sys
from typing import IO from typing import IO
from typing import Optional from typing import Optional
from typing import Sequence from typing import Sequence
@ -53,3 +54,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
retv |= ret_for_file retv |= ret_for_file
return retv return retv
if __name__ == '__main__':
sys.exit(main())