parser.add_option('-s', '--signal', action='store_true', dest='signal',
    default=False, help='signal end of program and return code')
parser.disable_interspersed_args()
options, command = parser.parse_args()
if not command:
    parser.print_help()
sys.exit(1)
if options.quiet:
    ret = subprocess.call(command, stdout=open(os.devnull, 'w'), stderr=
        subprocess.STDOUT)
else:
    ret = subprocess.call(command)
if options.signal:
    pass
OptionParser - supporting any option at the end of the command line