from argparse import ArgumentParser
import boids
import matplotlib.pyplot as plt
import yaml

def process_command_line_input():
    parser = ArgumentParser(description = "Calculates boid movements depending on parameters in configuration file. ")
    parser.add_argument('--conf', '-c', required=True)
    arguments = parser.parse_args()

    print(arguments.conf)

    config = yaml.load(open(arguments.conf))
    boids.plot_and_animate(config)


if __name__ == "__main__":
    process_command_line_input()

from argparse import ArgumentParser
import boids
import matplotlib.pyplot as plt
import yaml

def process_command_line_input():
    parser = ArgumentParser(description = "Calculates boid movements depending on parameters in configuration file. ")
    parser.add_argument('--conf', '-c', required=True)
    arguments = parser.parse_args()

    print(arguments.conf)

    config = yaml.load(open(arguments.conf))
    boids.plot_and_animate(config)


if __name__ == "__main__":
    process_command_line_input()
