continuing refactor

This commit is contained in:
2026-05-03 21:20:05 -07:00
parent 77cab1bd27
commit 5534812426
50 changed files with 1004 additions and 428 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ CMDLET = Cmdlet(
alias=[],
arg=[
SharedArgs.QUERY,
SharedArgs.STORE,
SharedArgs.INSTANCE,
],
detail=[
"- Lists relationship data as returned by Hydrus.",
@@ -44,7 +44,7 @@ def _run(result: Any, _args: Sequence[str], config: Dict[str, Any]) -> int:
log(f"Cmdlet: {CMDLET.name}\nSummary: {CMDLET.summary}\nUsage: {CMDLET.usage}")
return 0
# Parse -query and -store override
# Parse -query and -instance override
override_query: str | None = None
override_store: str | None = None
args_list = list(_args)
@@ -56,7 +56,7 @@ def _run(result: Any, _args: Sequence[str], config: Dict[str, Any]) -> int:
override_query = str(args_list[i + 1]).strip()
i += 2
continue
if low in {"-store", "--store", "store"} and i + 1 < len(args_list):
if low in {"-instance", "--instance"} and i + 1 < len(args_list):
override_store = str(args_list[i + 1]).strip()
i += 2
continue