mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
python: Remove redundant dest for argparse arguments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
4d583e3d41
commit
a5dbab8fb0
@@ -14,7 +14,6 @@ class Command(ZulipBaseCommand):
|
||||
self.add_realm_args(parser)
|
||||
parser.add_argument(
|
||||
'--lookback-hours',
|
||||
dest='lookback_hours',
|
||||
type=int,
|
||||
help="Period a bit larger than that of the cron job that runs "
|
||||
"this command so that the lookback periods are sure to overlap.",
|
||||
|
||||
@@ -160,37 +160,31 @@ class Command(BaseCommand):
|
||||
|
||||
def add_arguments(self, parser: CommandParser) -> None:
|
||||
parser.add_argument('-n', '--num-messages',
|
||||
dest='num_messages',
|
||||
type=int,
|
||||
default=500,
|
||||
help='The number of messages to create.')
|
||||
|
||||
parser.add_argument('-b', '--batch-size',
|
||||
dest='batch_size',
|
||||
type=int,
|
||||
default=1000,
|
||||
help='How many messages to process in a single batch')
|
||||
|
||||
parser.add_argument('--extra-users',
|
||||
dest='extra_users',
|
||||
type=int,
|
||||
default=0,
|
||||
help='The number of extra users to create')
|
||||
|
||||
parser.add_argument('--extra-bots',
|
||||
dest='extra_bots',
|
||||
type=int,
|
||||
default=0,
|
||||
help='The number of extra bots to create')
|
||||
|
||||
parser.add_argument('--extra-streams',
|
||||
dest='extra_streams',
|
||||
type=int,
|
||||
default=0,
|
||||
help='The number of extra streams to create')
|
||||
|
||||
parser.add_argument('--max-topics',
|
||||
dest='max_topics',
|
||||
type=int,
|
||||
default=None,
|
||||
help='The number of maximum topics to create')
|
||||
@@ -208,25 +202,21 @@ class Command(BaseCommand):
|
||||
help='The number of personal pairs to create.')
|
||||
|
||||
parser.add_argument('--threads',
|
||||
dest='threads',
|
||||
type=int,
|
||||
default=1,
|
||||
help='The number of threads to use.')
|
||||
|
||||
parser.add_argument('--percent-huddles',
|
||||
dest='percent_huddles',
|
||||
type=float,
|
||||
default=15,
|
||||
help='The percent of messages to be huddles.')
|
||||
|
||||
parser.add_argument('--percent-personals',
|
||||
dest='percent_personals',
|
||||
type=float,
|
||||
default=15,
|
||||
help='The percent of messages to be personals.')
|
||||
|
||||
parser.add_argument('--stickyness',
|
||||
dest='stickyness',
|
||||
type=float,
|
||||
default=20,
|
||||
help='The percent of messages to repeat recent folks.')
|
||||
|
||||
Reference in New Issue
Block a user