[Pcsclite-cvs-commit] r6184 - in /trunk/PCSC/src/spy: pcsc-spy pcsc-spy.pod
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Jan 18 13:57:59 UTC 2012
Author: rousseau
Date: Wed Jan 18 13:57:58 2012
New Revision: 6184
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6184
Log:
Add support of --version to pcsc-spy
Modified:
trunk/PCSC/src/spy/pcsc-spy
trunk/PCSC/src/spy/pcsc-spy.pod
Modified: trunk/PCSC/src/spy/pcsc-spy
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/pcsc-spy?rev=6184&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy (original)
+++ trunk/PCSC/src/spy/pcsc-spy Wed Jan 18 13:57:58 2012
@@ -890,7 +890,7 @@
def print_usage():
- print "Usage: pcsc-spy [-n|--nocolor] [-d|--diffable] [-h|--help]"
+ print "Usage: pcsc-spy [-n|--nocolor] [-d|--diffable] [-h|--help] [-v|--version]"
if __name__ == "__main__":
import sys
@@ -898,8 +898,8 @@
logfile = None
try:
- opts, args = getopt.getopt(sys.argv[1:], "ndh", ["nocolor",
- "diffable", "help"])
+ opts, args = getopt.getopt(sys.argv[1:], "ndhv", ["nocolor",
+ "diffable", "help", "version"])
except getopt.GetoptError:
print_usage()
sys.exit(1)
@@ -914,6 +914,11 @@
if o == "-h" or o == "--help":
print_usage()
sys.exit(1)
+ if o == "-v" or o == "--version":
+ print "pcsc-spy version 1.0"
+ print "Copyright (c) 2011-2012, Ludovic Rousseau <ludovic.rousseau at free.fr>"
+ print
+ sys.exit(1)
if len(args) > 0:
logfile = args[0]
Modified: trunk/PCSC/src/spy/pcsc-spy.pod
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/pcsc-spy.pod?rev=6184&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy.pod (original)
+++ trunk/PCSC/src/spy/pcsc-spy.pod Wed Jan 18 13:57:58 2012
@@ -30,17 +30,22 @@
=item B<-d>, B<--diffable>
-remove the variable parts (like handler values) from the output so that
-two execution can be more easily compared
+Demove the variable parts (like handler values) from the output so that
+two execution can be more easily compared.
=item B<-h>, B<--help>
-display a short help text
+Display a short help text.
=item B<-n>, B<--nocolor>
-disable the output colorization (if you want redirect the output in a
-file for example)
+Disable the output colorization (if you want redirect the output in a
+file for example).
+
+=item B<-v>, B<--version>
+
+Print the version of the F<pcsc-spy> program plus a copyright, a list of
+authors.
=back
More information about the Pcsclite-cvs-commit
mailing list