Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
266 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
"""
Generic POST/create script
usage: create.py key url [key=value ...]
"""
2026-01-19 22:33:34 +00:00
import sys
from common import submit
data = {}
2017-08-17 00:33:02 +01:00
for k, v in [kwarg.split("=", 1) for kwarg in sys.argv[3:]]:
data[k] = v
2017-08-17 00:33:02 +01:00
submit(sys.argv[1], sys.argv[2], data)