Rework Stardoc's command line processing to use @Option and accept semantic flags

For backward compatibility, both new and old arg processing remains briefly intact. stardoc.bzl (in the skydoc repository) will be updated subject to this change, and then Stardoc's integration tests can be updated to point to the new stardoc.bzl version.

Regression testing is thus excluded from this CL, but will be fixed with these followups.

RELNOTES: None.
PiperOrigin-RevId: 222466690
diff --git a/src/test/java/com/google/devtools/build/skydoc/BUILD b/src/test/java/com/google/devtools/build/skydoc/BUILD
index 67f68c1..05d9df3 100644
--- a/src/test/java/com/google/devtools/build/skydoc/BUILD
+++ b/src/test/java/com/google/devtools/build/skydoc/BUILD
@@ -21,6 +21,7 @@
     shard_count = 1,
     visibility = ["//devtools/blaze/main:__pkg__"],
     deps = [
+        "//src/main/java/com/google/devtools/build/lib:skylark_semantics",
         "//src/main/java/com/google/devtools/build/lib:syntax",
         "//src/main/java/com/google/devtools/build/lib/cmdline",
         "//src/main/java/com/google/devtools/build/lib/vfs",