Skip to content

Commit c8c7bc0

Browse files
committed
Add version information
1 parent 2c0730e commit c8c7bc0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ script is basically a one-liner that got out of hand. However, if you want
1313
titles and MIME types and highlighted extracts and colors, as well as
1414
various options, keep reading.
1515

16-
WARNING: Experimental, things might suddenly change, use at your own risk, etc.
16+
WARNING: Still at version 0.x, use at your own risk, etc.
1717

1818
![zzzfoo screenshot](https://anders.unix.se/images/zzzfoo_01.png)
1919

zzzfoo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# Anders Jensen-Urstad <anders@unix.se>
1010
# License: GPLv2
1111

12+
__version__ = "0.1"
13+
1214
import sys
1315
import re
1416
from os import getenv
@@ -141,6 +143,8 @@ def handle_args():
141143
'Don\'t include trailing slash. Set to \'\' to disable.')
142144
parser.add_argument('-x', '--xclip-copy', dest='xclip_copy', action='store_true',
143145
help='Copy path of selected match to X primary selection (xclip required)')
146+
parser.add_argument('-V', '--version', action='version', help='Show program version.',
147+
version='%(prog)s {version}'.format(version=__version__))
144148

145149
colors = ['--color-abstract', '--color-file-info', '--color-path', '--color-title']
146150
for color in colors:

0 commit comments

Comments
 (0)