Skip to content

If ambiguous method is used, list possible modules #106

Description

@matthewmayer

You might want to explicitly set this option if the name of function you want to invoke exists in multiple modules. By default the alphanumerical first module will be choosen otherwise

I think a cleaner way to handle this would be to return an error and list the correct invocations, e.g.

> npx faker genre

Matches multiple methods, did you mean:
npx faker -m book genre
npx faker -m music genre

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions