queue_workers: Fix confusing --queue_type argument name.

This commit is contained in:
Tim Abbott
2017-02-22 00:23:07 -08:00
parent 2768be7fdf
commit aa6567ee34
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ from zerver.worker.queue_processors import get_active_worker_queues
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--queue_type', action='store', dest='queue_type', default=None,
parser.add_argument('--queue-type', action='store', dest='queue_type', default=None,
help="Specify which types of queues to list")
args = parser.parse_args()

View File

@@ -37,7 +37,7 @@ consumers = defaultdict(int) # type: Dict[str, int]
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
from scripts.lib.zulip_tools import su_to_zulip
queues = subprocess.check_output(['./scripts/lib/queue_workers.py', '--queue_type=consumer'],
queues = subprocess.check_output(['./scripts/lib/queue_workers.py', '--queue-type=consumer'],
universal_newlines=True,
preexec_fn=su_to_zulip)