console: add a -l flag to set the limit on startup

This commit is contained in:
Aldo Cortesi
2015-04-15 12:56:43 +12:00
parent 5ff4303124
commit 850a50262b
4 changed files with 16 additions and 0 deletions

View File

@@ -599,6 +599,11 @@ def mitmproxy():
type=str, dest="intercept", default=None,
help="Intercept filter expression."
)
group.add_argument(
"-l", "--limit", action="store",
type=str, dest="limit", default=None,
help="Limit filter expression."
)
return parser