[Pgp-tools-commit] r658 - in trunk/keyart: . doc

Aaron Toponce atoponce-guest at moszumanska.debian.org
Wed Jun 18 15:58:10 UTC 2014


Author: atoponce-guest
Date: 2014-06-18 15:58:10 +0000 (Wed, 18 Jun 2014)
New Revision: 658

Modified:
   trunk/keyart/doc/keyart.1
   trunk/keyart/keyart
Log:
change option from -a|--ansi to -c|--color for better clarity

Modified: trunk/keyart/doc/keyart.1
===================================================================
--- trunk/keyart/doc/keyart.1	2014-06-18 15:51:13 UTC (rev 657)
+++ trunk/keyart/doc/keyart.1	2014-06-18 15:58:10 UTC (rev 658)
@@ -6,7 +6,7 @@
 \- Create ASCII art of an OpenPGP key.
 .SH SYNOPSIS
 .B keyart
-[-a|--ansi] [-f|--file \fIFILE\fR] [\fIKEYID\fR ...]
+[-c|--color] [-f|--file \fIFILE\fR] [\fIKEYID\fR ...]
 .SH DESCRIPTION
 .B keyart
 creates an ASCII art representation of public OpenPGP keys. The art is an
@@ -25,7 +25,7 @@
 see gpg(1) for details).  If no \fIKEYID\fR is given, \fBkeyart\fR
 creates an ASCII art representation for all keys found.
 .TP 8
-.B -a | --ansi
+.B -c | --color
 Print the ASCII art using ANSI color to the terminal.
 .TP 8
 .B -f | --file \fIFILE\fR

Modified: trunk/keyart/keyart
===================================================================
--- trunk/keyart/keyart	2014-06-18 15:51:13 UTC (rev 657)
+++ trunk/keyart/keyart	2014-06-18 15:58:10 UTC (rev 658)
@@ -10,7 +10,7 @@
 
 PARSER = argparse.ArgumentParser(
     description='Creates ASCII art from OpenPGP keys.')
-PARSER.add_argument('-a', '--ansi', help='Print the art with ANSI color.',
+PARSER.add_argument('-c', '--color', help='Print the art with ANSI color.',
                     action='store_true')
 PARSER.add_argument('-f', '--file', type=str, metavar=('FILE'),
                     action='append',
@@ -169,11 +169,11 @@
 
         # Insert the 'coin' into the art at this position
         if i == 104: # Starting position
-            art = art.format(_get_coin(visit, ARGS.ansi, coin='S'))
+            art = art.format(_get_coin(visit, ARGS.color, coin='S'))
         elif i == walk[len(walk)-1]: # Ending position
-            art = art.format(_get_coin(visit, ARGS.ansi, coin='E'))
+            art = art.format(_get_coin(visit, ARGS.color, coin='E'))
         else:
-            art = art.format(_get_coin(visit, ARGS.ansi))
+            art = art.format(_get_coin(visit, ARGS.color))
 
     art += '+{:-^19}+'.format("["+key_fpr[-8:]+"]")
     return art




More information about the Pgp-tools-commit mailing list