Yes,

see also

bin/jboss-cli.sh --connect --command :read-resource\(recursive=true\)
Duplicate argument '--command'/'--commands'.

but
bin/jboss-cli.sh --connect --command=:read-resource\(recursive=true\)
bin/jboss-cli.sh --connect :read-resource\(recursive=true\)

works.

Maybe the last argument is interpreted as '--command=:read..' and therefore the message ;)

Wolf

On 02/16/2012 11:27 AM, Panzer, Robert wrote:

Hi,

 

just tried the final version and wanted to execute a cli script using jboss-cli.bat.

But jboss-cli.bat my.cli fails with:

Duplicate argument '--command'/'--commands'.

 

Is there anyone else having the same problem?

 

The effective Java call in jboss-cli.bat is

"c:\Program Files\Java\jdk1.6.0_29\bin\java" -Dprogram.name=jboss-cli.bat      -jar "e:\git\jboss-as\build\target\jboss-as-7.1.0.Final\jboss-modules.jar"     -mp "e:\git\jboss-as\build

\target\jboss-as-7.1.0.Final\modules"      org.jboss.as.cli      -c --file deployDataSource.cli

Duplicate argument '--command'/'--commands'.type

 

My cli file currently contains only:

/subsystem=datasources/xa-data-source="MY_XA_DATASOURCE":disable       

 

This worked in any case with commit ID 945edc.

 

Kind regards,

Robert

WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193

Diese E-Mail enthält vertrauliche Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev