Use getopt for option parsing