diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-03 10:17:28 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-03 10:17:28 +0100 |
commit | 0835d1b7811c38f8e4f48ae3772d26fccd70c217 (patch) | |
tree | 4e054105ceb6735a6d99f737fa9a4e0ef44ac2dc /vk/tracking/status.py | |
parent | workflows/ci: unpin runner image (diff) | |
download | vk-scripts-0835d1b7811c38f8e4f48ae3772d26fccd70c217.tar.gz vk-scripts-0835d1b7811c38f8e4f48ae3772d26fccd70c217.zip |
add runtime version informationv1.0.3
Diffstat (limited to 'vk/tracking/status.py')
-rw-r--r-- | vk/tracking/status.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vk/tracking/status.py b/vk/tracking/status.py index 0a02413..0dd5e42 100644 --- a/vk/tracking/status.py +++ b/vk/tracking/status.py @@ -12,8 +12,9 @@ import sys from vk.api import API import vk.error -from vk.user import UserField from vk.tracking.db import Format as DatabaseFormat +from vk.user import UserField +import vk.version class StatusTracker: @@ -171,6 +172,8 @@ def _parse_args(args=None): parser = argparse.ArgumentParser( description='Track when people go online/offline.') + vk.version.add_to_arg_parser(parser) + parser.add_argument('uids', metavar='UID', nargs='+', help='user IDs or "screen names"') parser.add_argument('-t', '--timeout', metavar='SECONDS', |