Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions faceswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@
_PARSER = cli_args.FullHelpArgumentParser()


def _bad_args(*args) -> None: # pylint:disable=unused-argument
""" Print help to console when bad arguments are provided. """
print(cli_args)
_PARSER.print_help()
sys.exit(0)


def _main() -> None:
""" The main entry point into Faceswap.

if sys.version_info < (3, 7):
raise Exception("This program requires at least python3.7")
if get_backend() == "amd" and sys.version_info >= (3, 9):
raise Exception("The AMD version of Faceswap cannot run on versions of Python higher than 3.8")


_PARSER = cli_args.FullHelpArgumentParser()


def _bad_args(*args) -> None: # pylint:disable=unused-argument
""" Print help to console when bad arguments are provided. """
print(cli_args)
Expand Down