summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratyush Shukla <ps4534@nyu.edu>2023-05-03 18:11:08 +0530
committerGitHub <noreply@github.com>2023-05-03 12:41:08 +0000
commitcfb0f77f77c12f18d9c4e283bd8e729868e7e54e (patch)
tree9925b9e1cdfb96a9a11c8e07b036d312f9db6e12
parent7c10fac330cbe50c3ee31907f7b403eb6ad1d705 (diff)
Fixed `--help` arg not working (#4956)
-rw-r--r--openbb_terminal/keys_controller.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/openbb_terminal/keys_controller.py b/openbb_terminal/keys_controller.py
index ba33fdc2df9..9fae2982f08 100644
--- a/openbb_terminal/keys_controller.py
+++ b/openbb_terminal/keys_controller.py
@@ -490,7 +490,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="client_id",
help="Client ID",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-s",
@@ -498,7 +498,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="client_secret",
help="Client Secret",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-u",
@@ -506,7 +506,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="username",
help="Username",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-p",
@@ -514,7 +514,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="password",
help="Password",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-a",
@@ -522,7 +522,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="user_agent",
help="User agent",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
nargs="+",
)
if not other_args:
@@ -560,7 +560,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="key",
help="Key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-s",
@@ -568,7 +568,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="secret",
help="Secret key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-t",
@@ -576,7 +576,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="token",
help="Bearer token",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
if not other_args:
console.print("For your API Key, visit: https://developer.twitter.com")
@@ -641,7 +641,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="username",
help="username",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-p",
@@ -649,7 +649,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="password",
help="password",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-s",
@@ -730,7 +730,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="key",
help="Key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-s",
@@ -738,7 +738,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="secret",
help="Secret key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
if not other_args:
console.print("For your API Key, visit: https://binance.com")
@@ -794,7 +794,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="key",
help="Key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-s",
@@ -802,7 +802,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="secret",
help="Secret key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-p",
@@ -810,7 +810,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="passphrase",
help="Passphrase",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
if not other_args:
console.print("For your API Key, visit: https://docs.pro.coinbase.com/")
@@ -983,7 +983,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="key",
help="Key",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
parser.add_argument(
"-t",
@@ -991,7 +991,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
type=str,
dest="token",
help="Token",
- required="-h" not in other_args,
+ required="-h" not in other_args and "--help" not in other_args,
)
if not other_args:
console.print("For your API Key, visit: https://www.smartstake.io")