Skip to content

Commit

Permalink
docs: specified date format to use on commands
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Jan 17, 2021
1 parent 370146a commit cdb7121
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,29 @@ You can install it easily with composer

## 💻 Usage

Generate a changelog without committing files:
- Generate a changelog without committing files:

`php vendor/bin/conventional-changelog`

`php vendor/bin/conventional-changelog`

or with auto commit and auto version tagging:
- Generate a changelog with auto commit and auto version tagging:

`php vendor/bin/conventional-changelog --commit`
`php vendor/bin/conventional-changelog --commit`


- Generate a changelog from a specified date to another specified date:

`php vendor/bin/conventional-changelog --from-date="2020-12-01" --to-date="2021-01-01"`

### Commands List

```
-c --commit bool Commit the new release once changelog is generated
-f --from-date str Get commits from specified date
-f --from-date str Get commits from specified date [YYYY-MM-DD]
-h --help bool Show the helper with all commands available
-m --major bool Major release (important changes)
-n --minor bool Minor release (add functionality)
-p --patch bool Patch release (bug fixes)
-t --to-date str Get commits from today (or specified on --from-date) to specified date
-t --to-date str Get commits from last tag date (or specified on --from-date) to specified date [YYYY-MM-DD]
-v --version str Specify next release version code (Semver)
```
4 changes: 2 additions & 2 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public function run()
// Arguments
$helper = <<<EOL
-c --commit bool Commit the new release once changelog is generated
-f --from-date str Get commits from specified date
-f --from-date str Get commits from specified date [YYYY-MM-DD]
-h --help bool Show the helper with all commands available
-m --major bool Major release (important changes)
-n --minor bool Minor release (add functionality)
-p --patch bool Patch release (bug fixes)
-t --to-date str Get commits from today (or specified on --from-date) to specified date
-t --to-date str Get commits last tag date (or specified on --from-date) to specified date [YYYY-MM-DD]
-v --version str Specify next release version code (Semver)
EOL;

Expand Down

0 comments on commit cdb7121

Please sign in to comment.