<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Luca,<br></div><div><br></div><div>In order to get the batch mode working in CLI client, you need to place the -B right after zanata-cli and before push command. Same goes with -e option to enable error trace and -X to enable debug logging. So it will be like:<br></div><div><i><b>        zanata-cli <i><b>-B</b></i> push -l en --file-types "txt" --merge-type “auto"</b></i></div><div><br></div><div>merge type is auto by default so you can drop it if you want.<br></div><div><br></div><div>This behavior is a limitation of the library(args4j) we use. There are 2 bugs <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1003444">https://bugzilla.redhat.com/show_bug.cgi?id=1003444</a> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1030139"></a> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1030139">https://bugzilla.redhat.com/show_bug.cgi?id=1030139</a> for this problem but since there is workaround available we haven't looked into it yet.<br></div><div><br></div><div><span name="x"></span>Patrick Huang<br>Senior Software Engineer<br>Engineering - Internationalisation<br>Red Hat<span name="x"></span><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Luca Perino" <iphoneyukh@gmail.com><br><b>To: </b>zanata-devel@redhat.com<br><b>Sent: </b>Tuesday, May 19, 2015 1:43:33 AM<br><b>Subject: </b>[zanata-devel] batch mode - mac<br><div><br></div><span style="background-color: rgb(255, 255, 255);" class="">Hi, </span><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);">i want to push a file to server and i’m running the following command on a Mac Teminal</div><div class="" style="background-color: rgb(255, 255, 255);"><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"><br class=""></div></div><blockquote class="" style="background-color: rgb(255, 255, 255); margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"><i class=""><b class="">zanata-cli push -B -l en --file-types "txt" --merge-type “auto"</b></i></div></div></blockquote><div class="" style="background-color: rgb(255, 255, 255); margin: 0px; font-size: 11px; font-family: Menlo;"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);">After some time Zanata show me:</div><blockquote class="" style="background-color: rgb(255, 255, 255); margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"><i class=""><b class="">[INFO] Found source documents:</b></i></div></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"><i class=""><b class="">[INFO]            Localizable.txt</b></i></div></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"><i class=""><b class="">This will overwrite existing documents on the server.</b></i></div></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><i class=""><b class=""><br class=""></b></i></div></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"><i class=""><b class="">Are you sure (y/n)? </b></i></div></div></blockquote><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);">asking me to enter y/n.</div><div class="" style="background-color: rgb(255, 255, 255);">I want to <b class="">automatize</b> the script and i can’t answer.</div><div class="" style="background-color: rgb(255, 255, 255);">I’ve set -B (also tried —batch-mode)  but always, it prompts to me the questions.</div><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);">How can i disable the prompt?</div><div class="" style="background-color: rgb(255, 255, 255);">Any help?</div><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="background-color: rgb(255, 255, 255);">Thanks,<br class=""><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div class="">Luca</div></span></div></div><div class=""><br class="Apple-interchange-newline">

</div>
<br class=""><br>_______________________________________________<br>zanata-devel mailing list<br>zanata-devel@redhat.com<br>https://www.redhat.com/mailman/listinfo/zanata-devel</blockquote><div><br></div></div></body></html>