From 0a0ea5a3fec6eae0a4b300918a9a8fc06fcc786f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 20 Nov 2025 13:35:54 -0500 Subject: Fix docopt flag ordering issue by using [options] - Changed 'task list' usage from explicit flags to [options] - Allows flags to be specified in any order (fixes t-10KNtTF) - All combinations now work: --namespace --status, --status --namespace, etc. - Updated AGENTS.md examples to use correct status argument format - All tests passing (28/28) --- AGENTS.md | 6 +++--- Omni/Task.hs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d19ecf5..b668758 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,13 +37,13 @@ task init --quiet # Non-interactive initialization task ready --json # 2. Claim a task -task update --status in_progress --json +task update in-progress --json # 3. During work: create discovered issues task create "Fix type error found" --discovered-from= --json # 4. Complete the task -task update --status done --json +task update done --json # 5. End of session: sync to git (local commit only) task sync @@ -202,7 +202,7 @@ The `--namespace` option associates the task with a specific namespace in the mo ### List Tasks ```bash -task list [--type=] [--parent=] [--status=] [--namespace=] +task list [options] # Flags can be in any order ``` Examples: diff --git a/Omni/Task.hs b/Omni/Task.hs index 656c972..eeca4c6 100644 --- a/Omni/Task.hs +++ b/Omni/Task.hs @@ -39,7 +39,7 @@ task Usage: task init [--quiet] task create [--type=<type>] [--parent=<id>] [--priority=<p>] [--deps=<ids>] [--dep-type=<type>] [--discovered-from=<id>] [--namespace=<ns>] [--json] - task list [--type=<type>] [--parent=<id>] [--status=<status>] [--namespace=<ns>] [--json] + task list [options] task ready [--json] task show <id> [--json] task update <id> <status> [--json] -- cgit v1.2.3