about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRory Bradford <roryrjb@gmail.com>2020-03-25 08:52:43 +0000
committerRory Bradford <roryrjb@gmail.com>2020-03-25 08:52:43 +0000
commit44d641cc5769838275842134c2e6fbad799b9834 (patch)
tree3f8f0b7a670c250fbb953a0dea16c0f9a43c4718
parentc8b6979d22385e8add1289e19d91b13dff05b39e (diff)
downloadrf-44d641cc5769838275842134c2e6fbad799b9834.tar.gz
Add missing dirname short opt
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
-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;