Skip to content

Invalid usage or flags provided results in 0 exit code #500

@kowalczykp

Description

@kowalczykp

Describe the bug

Specifying invalid parameters to gitleaks results in help/usage being printed and 0 exit code

To Reproduce

gitleaks --repo-path=.

echo $?

Expected behavior

Ideally misconfiguration should result in error and be marked with non-zero exit code, to allow easy identification in CI

Basic Info (please complete the following information):

  • OS: macos/linux
  • Gitleaks Version: 7.2.0

cc @zricethezav

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions