Skip to content

cli: a word after load, unload, reload, status or test's suite is dropped and the verb runs #1190

Description

@lneto

(posted by an agent, not by @lneto)

bin/lunatik runs commands[arg[1]] with no look at the words after it (bin/lunatik:217-220): lunatik unload now, lunatik load x and lunatik status foo run the verb and exit 0, and lunatik test a b runs suite a and drops b. The usage names load, unload, reload and status with no operand and test with at most one, and #1171 has a wrong invocation exit 2 with the usage on stderr, which these still do not. A count of operands per verb, checked before the dispatch, answers it: none for the four, at most one for test, any for compile. #1173 reshapes the operand grammar (#1160), so it fits beside that parser.

Found in the review of #1171.

Activity

  1. added
    bugSomething isn't working
    severity: lowDocumentation, tests or cleanup
    complexity: smallOne line or one file, with a trivial or existing test
    on Sep 26, 2026
  2. added a commit that references this issue on Sep 28, 2026
    8ec12cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomplexity: smallOne line or one file, with a trivial or existing testseverity: lowDocumentation, tests or cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions