From bef62adbfcd7a2ea623a856c68e8843f3493eeae Mon Sep 17 00:00:00 2001 From: oepen Date: Wed, 7 Sep 2011 09:06:18 +0000 Subject: [PATCH] Lexically sorted the optparse options git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@527 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/vicc.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/virtualsmartcard/src/vpicc/vicc.in b/virtualsmartcard/src/vpicc/vicc.in index ae13ead..18f64a2 100644 --- a/virtualsmartcard/src/vpicc/vicc.in +++ b/virtualsmartcard/src/vpicc/vicc.in @@ -21,13 +21,6 @@ from optparse import OptionParser parser = OptionParser() -parser.add_option("-t", "--type", action="store", type="choice", - default='iso7816', - choices=['iso7816', 'cryptoflex', 'ePass', 'relay'], - help="Type of Smartcard [default: %default]") -parser.add_option("-r", "--reader", action="store", type="int", - default=None, - help="Number of reader for relaying") parser.add_option("-f", "--file", action="store", type="string", default=None, help="Load a saved card") @@ -37,6 +30,13 @@ parser.add_option("-n", "--hostname", action="store", type="string", parser.add_option("-p", "--port", action="store", type="int", default=35963, help="Port of Virtual PCD [default: %default]") +parser.add_option("-r", "--reader", action="store", type="int", + default=None, + help="Number of reader for relaying") +parser.add_option("-t", "--type", action="store", type="choice", + default='iso7816', + choices=['iso7816', 'cryptoflex', 'ePass', 'relay'], + help="Type of Smartcard [default: %default]") (options, args) = parser.parse_args() from virtualsmartcard.VirtualSmartcard import VirtualICC