From 754aa50a318cce73b9eafe35aa88a4a8fb0b9946 Mon Sep 17 00:00:00 2001 From: KhasMek Date: Mon, 16 Dec 2019 06:44:40 -0700 Subject: [PATCH] fplugin: default to user saved settings. Default to the username, password and server saved within user.xml if not specified in the command. --- faraday/client/bin/fplugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/faraday/client/bin/fplugin.py b/faraday/client/bin/fplugin.py index 68fe954cd32..895aab125dc 100755 --- a/faraday/client/bin/fplugin.py +++ b/faraday/client/bin/fplugin.py @@ -176,15 +176,15 @@ def main(): '-u', '--url', help='Faraday Server URL. Example: http://localhost:5985', - default='http://localhost:5985') + default=CONF.getServerURI()) parser.add_argument( '--username', - required=True) + default=CONF.getAPIUsername()) parser.add_argument( '--password', - required=True) + default=CONF.getAPIPassword()) # Only parse known args. Unknown ones will be passed on the the called script args, unknown = parser.parse_known_args()