# HG changeset patch # User Steve Losh # Date 1449662266 0 # Node ID 4602c8a6735aa58d60f2966bebd08300ba6a56ff # Parent 0e947252dd46ee6a5acecf839a1d74c8f1296dce Clean up full path option name diff -r 0e947252dd46 -r 4602c8a6735a ffind --- a/ffind Wed Dec 09 11:55:13 2015 +0000 +++ b/ffind Wed Dec 09 11:57:46 2015 +0000 @@ -474,7 +474,7 @@ for item in contents: path = os.path.join(dir, item) - if options.print_fullname: + if options.full_path: path = os.path.abspath(path) if not should_ignore(item, path, ignorers): @@ -527,9 +527,12 @@ p.add_option('-E', '--non-entire', dest='entire', action='store_false', help='match PATTERN against only the filenames (default)') - p.add_option('-p', '--fullname', dest='print_fullname', + p.add_option('-p', '--full-path', dest='full_path', action='store_true', default=False, - help="print the file's full name") + help="print the file's full path") + p.add_option('-P', '--relative-path', dest='full_path', + action='store_false', + help="print the file's relative path (default)") # Case sensitivity g = OptionGroup(p, "Configuring Case Sensitivity")