Looks like a regression.
I also could not execute: "asadmin create-file-user --user admin ..."
and "asadmin --user admin create-file-user ...".
However, interatcive mode works.
I've filed an IT:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=9105
Tim Quinn wrote:
> Hi.
>
> This seems to be a recent change.
>
> create-file-user no longer seems to accept the --user adminUserName
> option. Some deployment devtests have specified this for a long time
> and recently began failing due to that.
>
>
> The error which the CLI displays is "invalid command" not "invalid
> option."
>
>
> The on-line help still describes --user as a valid option and shows it
> in the examples (after the command, by the way).
>
>
> - Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>