def main(argv: Sequence[str] = SYS_ARGV) -> int:
args = default_parser().parse_args(argv)<EOL>try:<EOL><INDENT>seq = POPULATIONS[args.population]  <EOL><DEDENT>except KeyError:<EOL><INDENT>try:<EOL><INDENT>with open(args.population, '<STR_LIT:r>', encoding=args.encoding) as file_:<EOL><INDENT>seq = list(file_)<EOL><DEDENT><DEDENT>except (OSError, UnicodeError) as ex:<EOL><INDENT>print(ex, file=sys.stderr)<EOL>return <NUM_LIT:1><EOL><DEDENT><DEDENT>main_key = key(seq=seq, nteeth=args.nteeth, delimiter=args.delimiter)<EOL>print(main_key)<EOL>if args.stats:<EOL><INDENT>print('<STR_LIT:*>', len(main_key), '<STR_LIT>')<EOL>print('<STR_LIT:*>', args.nteeth, '<STR_LIT>', len(seq))<EOL>print(<EOL>'<STR_LIT>'.format(<EOL>sign='<STR_LIT>' if args.delimiter else '<STR_LIT:<>',<EOL>nbits=round(math.log(len(seq), <NUM_LIT:2>) * args.nteeth, <NUM_LIT:2>),<EOL>),<EOL>)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Execute CLI commands.