Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Leo Pound Singer
gracedb-client
Commits
7ccf34ae
Commit
7ccf34ae
authored
Oct 14, 2020
by
Alexander Pace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding deprecation warning to gracedb_legacy
parent
206d1540
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ligo/gracedb/legacy_cli.py
ligo/gracedb/legacy_cli.py
+5
-4
No files found.
ligo/gracedb/legacy_cli.py
View file @
7ccf34ae
...
...
@@ -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)
X509_USER_PROXY
X509_USER_CERT
X509_USER_KEY
...
...
@@ -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.""" % {
else
:
pass
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
\
DEFAULT_SERVICE_URL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment