yanglint REFACTOR setting of --disable-searchdir
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 40e4df8..637c7f4 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -549,16 +549,11 @@
             break;
         /* case 'p' */
 
-        case 'D': /* --disable-search */
+        case 'D': /* --disable-searchdir */
             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 */