Better error when invalid palette is specified

This commit is contained in:
Aldo Cortesi 2015-03-12 22:56:47 +11:00
parent 04e9260b74
commit 0d59c2da97
2 changed files with 2 additions and 2 deletions

View File

@ -571,6 +571,7 @@ def mitmproxy():
parser.add_argument(
"--palette", type=str, default="dark",
action="store", dest="palette",
choices=sorted(palettes.palettes.keys()),
help="Select color palette: " + ", ".join(palettes.palettes.keys())
)
parser.add_argument(
@ -662,4 +663,3 @@ def mitmweb():
help="Intercept filter expression."
)
return parser

View File

@ -56,7 +56,7 @@ $PYINST_CMD ./release/mitmweb.spec
echo "Running mitmweb..."
./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
cp ./dist/mitmproxy $TMPDIR/$DST
cp ./dist/mitmdump $TMPDIR/$DST