Modify switch handling to centralize parse and validation for --{foo}-is-empty

Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
Change-Id: Ia8b955f5451b5b7938d48abdea681e5c8396b376
diff --git a/jira/makefile b/jira/makefile
index ab4c3eb..3a6a316 100644
--- a/jira/makefile
+++ b/jira/makefile
@@ -6,7 +6,8 @@
 
 ## -----------------------------------------------------------------------
 ## -----------------------------------------------------------------------
-all:
+all: ../lf
+	cd .. && $(MAKE)
 
 ## -----------------------------------------------------------------------
 ## -----------------------------------------------------------------------
@@ -16,13 +17,18 @@
 ## -----------------------------------------------------------------------
 ## -----------------------------------------------------------------------
 query-args	:= $(null)
-# query-args	+= --dry-run
+ifdef DRYRUN
+  query-args	+= --dry-run
+endif
 query-args	+= --opencord
 query-args	+= --or
-query-args	+= --label-is-empty
-query-args	+= --label   'python'
-query-args	+= --label-excl 'foobar'
+# query-args	+= --label-is-empty
+query-args	+= --label   'python3x'
+#query-args	+= --label   'python'
+#query-args	+= --label-excl 'foobar'
 query-args	+= --text-or 'python'
+query-args	+= --resolved-is-empty
+# query-args	+= --unresolved
 
 query :
 	$(jira-search) $(query-args) 2>&1 | tee log