Changeset 5554

Show
Ignore:
Timestamp:
07/13/12 13:20:44 (7 years ago)
Author:
cmatthew
Message:

added a verbose flag.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/fuse/lind_fuse.py

    r5553 r5554  
    487487 
    488488def main(): 
     489    global LOGGING 
     490 
     491    if "-v" in sys.argv or "--verbose" in sys.argv: 
     492        LOGGING = True 
    489493 
    490494    usage = """ 
     
    501505 
    502506    server.multithreaded = False  # if this is true, better add some locks! 
     507     
     508    server.parser.add_option("-v", "--verbose", 
     509                             action="store_true", dest="verbose", default=False, 
     510                             help="print extra information about what system calls are being called.") 
    503511 
    504512    server.parser.add_option(mountopt="root", metavar="PATH", default='/', 
    505513                             help="mirror filesystem from under PATH [default: %default]") 
    506514    server.parse(values=server, errex=1) 
     515 
    507516    server.main() 
    508517    lind.persist_metadata("lind.metadata")