yanglint REFACTOR setting of --disable-searchdir
diff --git a/tools/lint/cmd_add.c b/tools/lint/cmd_add.c
index 744ea80..97ef94c 100644
--- a/tools/lint/cmd_add.c
+++ b/tools/lint/cmd_add.c
@@ -75,12 +75,7 @@
             if (yo->ctx_options & LY_CTX_DISABLE_SEARCHDIRS) {
                 YLMSG_W("The -D option specified too many times.\n");
             }
-            if (yo->ctx_options & LY_CTX_DISABLE_SEARCHDIR_CWD) {
-                yo->ctx_options &= ~LY_CTX_DISABLE_SEARCHDIR_CWD;
-                yo->ctx_options |= LY_CTX_DISABLE_SEARCHDIRS;
-            } else {
-                yo->ctx_options |= LY_CTX_DISABLE_SEARCHDIR_CWD;
-            }
+            yo_opt_update_disable_searchdir(yo);
             break;
 
         case 'F': /* --features */