Skip to content

Commit

Permalink
Add __version__ and --version
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonReinhart committed Apr 9, 2017
1 parent 66a694d commit 9cb7567
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spice-record
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -600,6 +602,8 @@ def parse_args():

ap.add_argument('-o', '--output', metavar='FILENAME',
help='Output filename (defaults to <domain-name>.mp4)')
ap.add_argument('-v', '--version', action='version',
version='spice-record ' + __version__)

return ap.parse_args()

Expand Down

0 comments on commit 9cb7567

Please sign in to comment.