When i was developing DCOM support in GlassFish there are commands that require a password. Asadmin can be automagically setup to get the password from the user. But it is making the assumption that the user is creating a new password and should type it in twice.
I wanted Asadmin to ask for the password once and just pass it on the server. It is pretty aggravating for the user that wants to try out the commands – he is FORCED to write his password into a password file and give it as an argument. My choices were to simply allow asadmin to ask for it twice or never. It was decided to do the latter.
Now's a good time to add this feature!