[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: No env needed for --help.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: No env needed for --help. |
Date: |
Thu, 08 Oct 2020 03:28:06 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new ad7c9eb No env needed for --help.
ad7c9eb is described below
commit ad7c9eb3548990941ea68803c15d4d735eb25a8a
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 8 03:27:37 2020 +0200
No env needed for --help.
---
cli/libeufin-cli | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index 3af5fec..e4ac2c2 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -12,6 +12,8 @@ from urllib.parse import urljoin
from getpass import getpass
def fetch_env():
+ if "--help" in sys.argv:
+ return []
try:
nexus_base_url = os.environ["NEXUS_BASE_URL"]
nexus_username = os.environ["NEXUS_USERNAME"]
@@ -22,20 +24,15 @@ def fetch_env():
" NEXUS_USERNAME, NEXUS_PASSWORD exist"
" in the environment"
)
- sys.exit(1)
-
return nexus_base_url, nexus_username, nexus_password
class NexusAccess:
- def __init__(self, nexus_base_url, username, password):
+ def __init__(self, nexus_base_url=None, username=None, password=None):
self.nexus_base_url = nexus_base_url,
self.username = username
self.password = password
-@click.group(help="""
-General utility to invoke HTTP REST services offered by Nexus.
-"""
-)
+@click.group(help="General utility to invoke HTTP REST services offered by
Nexus.")
def cli():
pass
@@ -317,7 +314,7 @@ def new_facade(obj, facade_name, connection_name,
account_name):
reserveTransferLevel="UNUSED",
intervalIncremental="UNUSED"
)
- ))
+ )))
except Exception:
print("Could not reach sandbox")
return
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: No env needed for --help.,
gnunet <=