Added optparse to shell