#!/usr/bin/env python

import argparse

from static_gallery.utils import process_call


def main():
    """Parses app command line options """
    parser = argparse.ArgumentParser(description='Static Gallery Generator Options.')

    parser.add_argument('--template-gallery',
                        help='Choose the name of the template for the gallery')
    parser.add_argument('--template-menu',
                        help='Choose the template for the menu')
    parser.add_argument('--src',
                        help='Source directory for the gallery')
    parser.add_argument('--dst',
                        help='Destiny where the web gallery will be generated')
    parser.add_argument('--server', action='store_true',
                        help='Executes a server')
    parser.add_argument('--port',
                        help='Choose the port for the server, by default 8000')
    parser.add_argument('--reload', action='store_true',
                        help="Reload all galleries, even if they exist in the destiny")

    arguments = parser.parse_args()
    process_call(arguments)


if __name__ == '__main__':
    main()
