add version command
All checks were successful
Python Linters / formatting (pull_request) Successful in 1m17s
Python Linters / mypy (pull_request) Successful in 1m24s
Python Linters / pylint (pull_request) Successful in 1m31s
REUSE Compliance / reuse (pull_request) Successful in 15s
Selftests / test-build-install (pull_request) Successful in 54s
Selftests / test-sync (pull_request) Successful in 1m16s
All checks were successful
Python Linters / formatting (pull_request) Successful in 1m17s
Python Linters / mypy (pull_request) Successful in 1m24s
Python Linters / pylint (pull_request) Successful in 1m31s
REUSE Compliance / reuse (pull_request) Successful in 15s
Selftests / test-build-install (pull_request) Successful in 54s
Selftests / test-sync (pull_request) Successful in 1m16s
This commit is contained in:
@@ -14,6 +14,7 @@ from time import sleep
|
||||
|
||||
import yaml
|
||||
|
||||
from . import __version__
|
||||
from ._cachedb import db_read
|
||||
from ._helpers import convert_bytes, findstring, get_lock
|
||||
from ._seafile import (
|
||||
@@ -48,6 +49,7 @@ parser.add_argument(
|
||||
default=False,
|
||||
help="Print and log DEBUG messages",
|
||||
)
|
||||
parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
|
||||
|
||||
|
||||
def main(): # pylint: disable=too-many-locals, too-many-statements
|
||||
|
||||
Reference in New Issue
Block a user