Skip to content

Commit

Permalink
Update command description
Browse files Browse the repository at this point in the history
  • Loading branch information
estyxx committed May 13, 2022
1 parent 7f6583c commit d3c3d1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ poetry plugin add poetry-plugin --dry-run

#### Options

* `--dry-run`: Outputs the operations but will not execute anything (implicitly enables --verbose).
* `--dry-run`: Outputs the operations but will not execute anything.

### `plugin show`

Expand Down
2 changes: 1 addition & 1 deletion src/poetry/console/commands/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class VersionCommand(Command):
]
options = [
option("short", "s", "Output the version number only"),
option("dry-run", None, "Perform all actions except upload the package."),
option("dry-run", None, "Outputs the operations but will not execute anything"),
]

help = """\
Expand Down
3 changes: 2 additions & 1 deletion tests/console/commands/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def test_short_version_update(tester: CommandTester):
def test_dry_run(tester: CommandTester):
old_pyproject = tester.command.poetry.file.path.read_text()
tester.execute("--dry-run major")
assert tester.io.fetch_output() == "Bumping version from 1.2.3 to 2.0.0\n"

new_pyproject = tester.command.poetry.file.path.read_text()
assert tester.io.fetch_output() == "Bumping version from 1.2.3 to 2.0.0\n"
assert old_pyproject == new_pyproject

0 comments on commit d3c3d1c

Please sign in to comment.