Make the script compatible with optparse