about summary refs log tree commit diff stats
path: root/rf.c
diff options
context:
space:
mode:
Diffstat (limited to 'rf.c')
-rw-r--r--rf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/rf.c b/rf.c
index a115b7a..69d4e54 100644
--- a/rf.c
+++ b/rf.c
@@ -266,7 +266,7 @@ int main(int argc, char **argv) {
 
   char *remainder;
 
-  while ((res = getopt_long(argc, argv, "hvVb", options, &index)) > -1) {
+  while ((res = getopt_long(argc, argv, "hvVbd", options, &index)) > -1) {
     switch (res) {
     case 0:
       if (strcmp("version", options[index].name) == 0) {
@@ -299,6 +299,10 @@ int main(int argc, char **argv) {
       basename = 1;
       break;
 
+    case 'd':
+      dirname = 1;
+      break;
+
     case 'v':
       invert = 1;
       break;