oliver-zehentleitner / maity

cli: `maity runner` is taken only as the first argument

Sign in to report

tsk-2cprkm334fqf Done An agent

maity accepts the runner command group after other arguments too (for example after -- or a global option). The runner commands are for the runner and its operator, and the harness rules that keep them away from placed agents expect runner right after maity.

Done when:

  • maity refuses the runner group unless it is the first argument (argv[1]), on every harness, with a clear usage message; nothing runs.
  • Every other command is unchanged, global options included.
  • Tests: maity -- runner ..., maity --for=x runner ... and the like are refused; maity runner ... works as before.
  • cli/README.md says it; changelog fragment.

Security leg on the PR.