Commit 7ccf34ae authored by Alexander Pace's avatar Alexander Pace
Browse files

adding deprecation warning to gracedb_legacy

parent 206d1540
......@@ -188,7 +188,6 @@ def main(args=None):
Environment Variables:
GRACEDB_SERVICE_URL (can be overridden by --service-url)
HTTP_PROXY (can be overridden by --proxy)
......@@ -209,8 +208,6 @@ Longer strings will be truncated.""" % {
from optparse import OptionParser
op = OptionParser(usage=usage)
op.add_option("-p", "--proxy", dest="proxy",
help="HTTP Proxy", metavar="PROXY[:PORT]")
op.add_option("-s", "--service-url", dest="service",
help="GraCEDb Service URL", metavar="URL")
op.add_option("-f", "--filename", dest="filename",
......@@ -273,7 +270,11 @@ Longer strings will be truncated.""" % {
proxy = options.proxy or os.environ.get('HTTP_PROXY', None)
# warn users about depreciation
warning("The gracedb_legacy CLI has been deprecated and "
"will be removed in a future release. Please use the updated "
"gracedb CLI or available API tools for your workflow.")
service = options.service or \
os.environ.get('GRACEDB_SERVICE_URL', None) or \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment