Menu

#142 bug: install --help executes install instead of printing help

closed
nobody
None
2026-04-20
2026-04-16
Anonymous
No

Originally created by: kumaakh

Summary

Running `apra-fleet install --help` performs the full install rather than printing help text. This is destructive — it modifies the user's global Claude settings without consent.

Steps to reproduce

  1. Run `apra-fleet install --help` expecting to see help output
  2. Observe: install executes, Claude settings modified

Expected behaviour

`--help` (and `-h`) on any subcommand should print help text and exit with code 0, without performing any side effects.

Impact

HIGH — users investigating the tool before committing to install are getting a full install run silently applied to their global config. Reported in the wild.

Fix

Check for `--help` / `-h` flag before any install logic runs. Print usage/help and exit. This must be the very first thing checked in the install command handler — before any file writes, config reads, or process detection.

Should be consistent: all subcommands (`install`, `update`, etc.) must honour `--help`.

Related

Tickets: #143

Discussion

  • Anonymous

    Anonymous - 2026-04-20

    Originally posted by: kumaakh

    Fixed in commit 211f043 (PR [#128]). apra-fleet install --help now prints usage and exits cleanly without executing any install logic. All subcommands honour --help / -h.

     

    Related

    Tickets: #128

  • Anonymous

    Anonymous - 2026-04-20

    Ticket changed by: kumaakh

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB