diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 23:31:26 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 23:31:26 +1200 |
| commit | a950a4d7a3097685d54f325f32a169034e9435f1 (patch) | |
| tree | 70c183f1a892cef1413ad1676a2f6a3b26171287 /pathod | |
| parent | 190392ea13f998fe298d48738131779f522d62e9 (diff) | |
| download | mitmproxy-a950a4d7a3097685d54f325f32a169034e9435f1.tar.gz mitmproxy-a950a4d7a3097685d54f325f32a169034e9435f1.tar.bz2 mitmproxy-a950a4d7a3097685d54f325f32a169034e9435f1.zip | |
Add pathod --noapi to turn off the service API.
Diffstat (limited to 'pathod')
| -rwxr-xr-x | pathod | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -27,8 +27,12 @@ if __name__ == "__main__": help='Size limit of served responses. Understands size suffixes, i.e. 100k.' ) parser.add_argument( + "--noapi", dest='noapi', default=False, action="store_true", + help='Disable API.' + ) + parser.add_argument( "--noweb", dest='noweb', default=False, action="store_true", - help='Disable web interface and API.' + help='Disable both web interface and API.' ) parser.add_argument( "--nocraft", dest='nocraft', default=False, action="store_true", @@ -90,7 +94,8 @@ if __name__ == "__main__": anchors = alst, sizelimit = sizelimit, noweb = args.noweb, - nocraft = args.nocraft + nocraft = args.nocraft, + noapi = args.noapi ) except pathod.PathodError, v: parser.error(str(v)) |
