Changeset 4402:20c50151d731 in livinglogic.python.xist for src/ll/scripts/ucat.py

Show
Ignore:
Timestamp:
03/04/11 17:37:41 (9 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add -a/--all option to uls, ucp and ucat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/scripts/ucat.py

    r4382 r4402  
    3232        if args.exclude is not None and args.exclude.search(strurl) is not None: 
    3333            return False 
     34        if not args.all and strurl.startswith("."): 
     35            return False 
    3436        return True 
    3537 
     
    6365    p.add_argument("-i", "--include", dest="include", metavar="PATTERN", help="Include only URLs matching PATTERN (default: %(default)s)", type=re.compile) 
    6466    p.add_argument("-e", "--exclude", dest="exclude", metavar="PATTERN", help="Exclude URLs matching PATTERN (default: %(default)s)", type=re.compile) 
     67    p.add_argument("-a", "--all", dest="all", help="Include dot files? (default: %(default)s)", action=misc.FlagAction, default=False) 
    6568 
    6669    args = p.parse_args(args)