yanglint REFACTOR setting of --make-implemented
diff --git a/tools/lint/yl_opt.c b/tools/lint/yl_opt.c
index 71492b2..1d21eb8 100644
--- a/tools/lint/yl_opt.c
+++ b/tools/lint/yl_opt.c
@@ -235,6 +235,17 @@
 }
 
 void
+yo_opt_update_make_implemented(struct yl_opt *yo)
+{
+    if (yo->ctx_options & LY_CTX_REF_IMPLEMENTED) {
+        yo->ctx_options &= ~LY_CTX_REF_IMPLEMENTED;
+        yo->ctx_options |= LY_CTX_ALL_IMPLEMENTED;
+    } else {
+        yo->ctx_options |= LY_CTX_REF_IMPLEMENTED;
+    }
+}
+
+void
 free_cmdline(char *argv[])
 {
     if (argv) {