dlenski / gp-saml-gui

Interactively authenticate to GlobalProtect VPNs that require SAML
GNU General Public License v3.0
306 stars 69 forks source link

Extra Arguments not recognized #66

Closed 3isenHeiM closed 2 years ago

3isenHeiM commented 2 years ago

The extra arguments are not recognized in my version of gp-saml-gui.

If I invoke it like mentionned in the readme, i get the following error:

gp-saml-gui --gateway --clientos=Linux vpn.company  --sudo-openconnect -- --csd-wrapper=hipreport.sh
usage: gp-saml-gui [-h] [--no-verify] [-C COOKIES | -K] [-g | -p] [-c CERT] [--key KEY] [-v | -q] [-x | -P | -S] [-u] [--clientos {Windows,Mac,Linux}]
                   [-f EXTRA] [--allow-insecure-crypto] [--user-agent USER_AGENT]
                   server [openconnect_extra ...]
gp-saml-gui: error: unrecognized arguments: -- --csd-wrapper=hipreport.sh

What am I missing?

3isenHeiM commented 2 years ago

The order of arguments has its importance.

Here is the working command :

gp-saml-gui --gateway --clientos=Linux --sudo-openconnect vpn.company -- --csd-wrapper=hipreport.sh