formatting defaults by hand to avoid default: None
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@752 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -23,7 +23,6 @@ import argparse
|
|||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
|
||||||
description='''
|
description='''
|
||||||
The @PACKAGE_NAME@ emulates different types of smart cards.
|
The @PACKAGE_NAME@ emulates different types of smart cards.
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ parser.add_argument("-t", "--type",
|
|||||||
action="store",
|
action="store",
|
||||||
choices=['iso7816', 'cryptoflex', 'ePass', 'nPA', 'relay'],
|
choices=['iso7816', 'cryptoflex', 'ePass', 'nPA', 'relay'],
|
||||||
default='iso7816',
|
default='iso7816',
|
||||||
help="Type of smart card to emulate")
|
help="Type of smart card to emulate (default: %(default)s)")
|
||||||
parser.add_argument("-f", "--file",
|
parser.add_argument("-f", "--file",
|
||||||
action="store",
|
action="store",
|
||||||
type=argparse.FileType('r'),
|
type=argparse.FileType('r'),
|
||||||
@@ -47,12 +46,12 @@ parser.add_argument("-H", "--hostname",
|
|||||||
action="store",
|
action="store",
|
||||||
type=str,
|
type=str,
|
||||||
default='localhost',
|
default='localhost',
|
||||||
help="address of the vpcd")
|
help="address of the vpcd (default: %(default)s)")
|
||||||
parser.add_argument("-P", "--port",
|
parser.add_argument("-P", "--port",
|
||||||
action="store",
|
action="store",
|
||||||
type=int,
|
type=int,
|
||||||
default=35963,
|
default=35963,
|
||||||
help="port of the vpcd")
|
help="port of the vpcd (default: %(default)s)")
|
||||||
|
|
||||||
relay = parser.add_argument_group('options for relaying a local smart card')
|
relay = parser.add_argument_group('options for relaying a local smart card')
|
||||||
relay.add_argument("-r", "--reader",
|
relay.add_argument("-r", "--reader",
|
||||||
|
|||||||
Reference in New Issue
Block a user