From 9cb7567fb4f14362d72a36f91c10c93ac1df9893 Mon Sep 17 00:00:00 2001 From: Jonathon Reinhart Date: Sun, 9 Apr 2017 12:11:00 -0400 Subject: [PATCH] Add __version__ and --version --- spice-record | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spice-record b/spice-record index 84130e0..669e1e6 100755 --- a/spice-record +++ b/spice-record @@ -34,6 +34,8 @@ import gi gi.require_version('SpiceClientGLib', '2.0') from gi.repository import SpiceClientGLib +__version__ = '0.1.0' + # Maximum framerate timer error allowance (percent of frame interval) FRAMERATE_ERR_LIMIT_PCT = 10.0 @@ -600,6 +602,8 @@ def parse_args(): ap.add_argument('-o', '--output', metavar='FILENAME', help='Output filename (defaults to .mp4)') + ap.add_argument('-v', '--version', action='version', + version='spice-record ' + __version__) return ap.parse_args()