Add a more explicit error message when alphabet is not specified

This commit is contained in:
Reuben Morais 2021-08-06 16:55:42 +02:00
parent 3cff3dd0de
commit f71e32735f
1 changed files with 4 additions and 0 deletions

View File

@ -1259,6 +1259,10 @@ def early_training_checks():
"for loading and saving."
)
if not Config.alphabet_config_path and not Config.bytes_output_mode:
log_error("Missing --alphabet_config_path flag, can't continue")
sys.exit(1)
def main():
initialize_globals_from_cli()