3.0.1 cryosparcm updateuser --lastname switch

Hi all,

We were just updating our management tools for Cryosparc 3.0.1 and noticed the change in cryosparcm createuser requiring --firstname --lastname separately.
This is shown in the online docs:

Createuser docs are ok, but updateuser will also take separate firstname / lastname flags
The cli help for these commands does not work for me i.e.

cryosparcm updateuser --help
Improper usage.

However, the cryosoparcm code shows, the updateuser is parsing firstname twice (ca line 531):

        --firstname)
        firstname="$2"
        shift # past arg
        shift # past val
        ;;
        --firstname)
        firstname="$2"
        shift # past arg
        shift # past val
        ;;

Best,
Erich

Hi @ebirn, thanks for reporting this, this is indeed a bug. We will fix this in an upcoming version of cryoSPARC. In the mean time, you may edit cryosparcm so that the latter two flag checks read lastname. Apologies for the inconvenience!

Hi, this has been fixed in v3.1: https://cryosparc.com/updates#v3-1

1 Like