Changeset 8049 for lang/python

Show
Ignore:
Timestamp:
03/17/08 22:36:52 (6 years ago)
Author:
jbking
Message:

lang/python/misc/watchman "--"を入れなくてもパラメータ解析止まるじゃん

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/python/misc/watchman

    r7997 r8049  
    11#!/usr/bin/env python 
    22 
    3 usage = """%prog [options] -- command [params] 
     3usage = """%prog [options] command [params] 
    44%prog is watching file changes and execute command then.""" 
    55 
     
    1818    parser.add_option("-t", "--sleep-time", metavar="TIME", default=3, 
    1919                      help="sleep time.") 
     20    parser.disable_interspersed_args() 
    2021    (options, args) = parser.parse_args() 
    2122    if len(args) < 1: