check-flagged-apis: add support for command line options

Use clikt as the command line options parser library.

Bug: 334870672
Test: m check-flagged-apis && check-flagged-apis
Change-Id: I7c406456b00e29293294dcdbef411d2543a1e8d5
diff --git a/tools/check-flagged-apis/Android.bp b/tools/check-flagged-apis/Android.bp
index 4695ca0..209c89b 100644
--- a/tools/check-flagged-apis/Android.bp
+++ b/tools/check-flagged-apis/Android.bp
@@ -21,5 +21,8 @@
     srcs: [
         "src/**/*.kt",
     ],
+    static_libs: [
+        "metalava-tools-common-m2-deps",
+    ],
     main_class: "com.android.checkflaggedapis.Main",
 }