Skip to content

'autopg uninstall --help' executes the uninstall instead of printing help #146

Description

@vasconceloscezar

Ran autopg uninstall --help (v3.0.7) expecting usage text. It performed the uninstall:

autopg: uninstalled pm2 entries: autopg-server, autopg-ui (data dir preserved at ~/.autopg/data)
autopg: cleared supervisor record from ~/.autopg/admin.json

This took down a postmaster serving live local databases. Data was preserved and autopg install --port <same> recovered, but --help must never execute the verb. Presumably other subcommands ignore unknown flags the same way — worth a global unknown-flag guard.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions