4602c8a6735a

Clean up full path option name
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 09 Dec 2015 11:57:46 +0000
parents 0e947252dd46
children 2e99c3f5e7ee
branches/tags (none)
files ffind

Changes

--- 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")