mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-17 15:08:00 +08:00
Add short options
This commit is contained in:
@@ -198,7 +198,7 @@ class RandomAtaccker(MixinPrinter, BaseAttacker):
|
|||||||
def add_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
super(RandomAtaccker, self).add_arguments(parser)
|
super(RandomAtaccker, self).add_arguments(parser)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--maxtries', default=10000, type=int)
|
'--maxtries', '-l', default=10000, type=int)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'rootpath', default='.', nargs='?',
|
'rootpath', default='.', nargs='?',
|
||||||
help='root directory to look for Python files.')
|
help='root directory to look for Python files.')
|
||||||
@@ -268,7 +268,7 @@ class AttackApp(object):
|
|||||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
description=__doc__)
|
description=__doc__)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--record', default='record.json',
|
'--record', '-R', default='record.json',
|
||||||
help='Exceptions are recorded in here.')
|
help='Exceptions are recorded in here.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--pdb', dest='debugger', const='pdb', action='store_const',
|
'--pdb', dest='debugger', const='pdb', action='store_const',
|
||||||
|
|||||||
Reference in New Issue
Block a user