gCLI tested with r20482:
running java -jar dist/*.jar:
logout: exited to login window.
login: prompted for user input in terminal. When user name entered, logged in.
login darwinlet: logged in known user.
running by double-clicking jar in dist directory:
logout: exited to login window.
login: exited to login window.
login darwinlet: logged in known user.
So, it's probably at least undesirable to prompt in the shell for the username when running a CLI command, but it works, if not well.
taltamir, can you provide the text of the error in the gCLI window? I can't make it error.