mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Better error when invalid palette is specified
This commit is contained in:
parent
04e9260b74
commit
0d59c2da97
@ -571,6 +571,7 @@ def mitmproxy():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--palette", type=str, default="dark",
|
"--palette", type=str, default="dark",
|
||||||
action="store", dest="palette",
|
action="store", dest="palette",
|
||||||
|
choices=sorted(palettes.palettes.keys()),
|
||||||
help="Select color palette: " + ", ".join(palettes.palettes.keys())
|
help="Select color palette: " + ", ".join(palettes.palettes.keys())
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
@ -662,4 +663,3 @@ def mitmweb():
|
|||||||
help="Intercept filter expression."
|
help="Intercept filter expression."
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ $PYINST_CMD ./release/mitmweb.spec
|
|||||||
echo "Running mitmweb..."
|
echo "Running mitmweb..."
|
||||||
./dist/mitmweb --version || exit 1
|
./dist/mitmweb --version || exit 1
|
||||||
|
|
||||||
exit DST=osx-mitmproxy-`./dist/mitmdump --shortversion 2>&1`
|
DST=osx-mitmproxy-`./dist/mitmdump --shortversion 2>&1`
|
||||||
mkdir -p $TMPDIR/$DST
|
mkdir -p $TMPDIR/$DST
|
||||||
cp ./dist/mitmproxy $TMPDIR/$DST
|
cp ./dist/mitmproxy $TMPDIR/$DST
|
||||||
cp ./dist/mitmdump $TMPDIR/$DST
|
cp ./dist/mitmdump $TMPDIR/$DST
|
||||||
|
Loading…
Reference in New Issue
Block a user