INNER CODE UNIT · Python
main
satoshikawato/gbdraw · gbdraw/cli.py:127
def main() -> None:
"""
Parses command-line arguments and directs to the appropriate genome diagram generation function.
This function serves as the entry point for the command-line interface. It parses the arguments
provided by the user and determines whether to generate a circular or linear genome diagram.
Based on the user's choice, it calls either `circular_main` or `linear_main` functions with the
parsed arguments.
Args:
None - Command-line arguments are obtained from sys.argv by argparse.
This function does not return any values. Instead, it initiates the genome diagram generation process.
"""
if len(sys.argv) <= 1 or sys.argv[1] in ['-h', '--help']:
print_help_message()
sys.exit(0)
elif '--version' in sys.argv: