Skip to content

Commit 69dd4ef

Browse files
committed
Release: Add '--version'
1 parent d054406 commit 69dd4ef

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
Add the `--version` command line argument.
6+
37
## 0.2.1
48

5-
## Fixes
9+
### Fixes
610

711
Fix crash when specifying a config file using the `-c` command line
812
argument.

bumgr/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
logger = logging.getLogger("bumgr.main")
1616

17+
__version__ = "0.3.0"
18+
1719

1820
def _cli_get_all(
1921
config: dict,
@@ -59,6 +61,9 @@ def cli():
5961
prog="bumgr",
6062
description="Manage backups with restic on macOS and Linux",
6163
)
64+
parser.add_argument(
65+
"--version", action="version", version=f"%(prog)s {__version__}"
66+
)
6267
parser.add_argument(
6368
"-c",
6469
"--config",

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "bumgr"
3-
version = "0.2.1"
3+
version = "0.3.0"
44
authors = [
55
{name = "Jonas Drotleff", email = "[email protected]"},
66
]

0 commit comments

Comments
 (0)