Skip to content

Commit

Permalink
Document pointing to a non-default location configuration file (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-challis authored Feb 13, 2023
1 parent 7ea6759 commit 8fd4e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ composer require --dev lendable/composer-license-checker

## Usage

Create a configuration file in your project root, `.allowed-licenses.php`.
Create a configuration file in your project root, `.allowed-licenses.php` (or you can use the the option `-a / --allow-file` to specify the location of the configuration).

```php
<?php
Expand All @@ -38,7 +38,7 @@ return (new LicenseConfigurationBuilder())
```

```sh
./vendor/bin/composer-license-checker
./vendor/bin/composer-license-checker [--allow-file path/to/configuration_file.php]
```

It is suggested you build this into your CI pipeline to automate checking it.
Expand Down

0 comments on commit 8fd4e72

Please sign in to comment.