Skip to content

Commit

Permalink
Add version information
Browse files Browse the repository at this point in the history
  • Loading branch information
andersju committed Nov 5, 2018
1 parent 2c0730e commit c8c7bc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ script is basically a one-liner that got out of hand. However, if you want
titles and MIME types and highlighted extracts and colors, as well as
various options, keep reading.

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

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

Expand Down
4 changes: 4 additions & 0 deletions zzzfoo
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# Anders Jensen-Urstad <[email protected]>
# License: GPLv2

__version__ = "0.1"

import sys
import re
from os import getenv
Expand Down Expand Up @@ -141,6 +143,8 @@ def handle_args():
'Don\'t include trailing slash. Set to \'\' to disable.')
parser.add_argument('-x', '--xclip-copy', dest='xclip_copy', action='store_true',
help='Copy path of selected match to X primary selection (xclip required)')
parser.add_argument('-V', '--version', action='version', help='Show program version.',
version='%(prog)s {version}'.format(version=__version__))

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

0 comments on commit c8c7bc0

Please sign in to comment.