Surpressing command line output

/usr/bin/soffice --headless –display :0 --convert-to xlsx /MRP_Systems/ /John.csv –outdir /MRP_Systems/

i am using the above syntax at command level, but i keep getting
Warning: :0 is deprecated. Use -:0 instead.
Warning: /MRP_Systems/ is deprecated. Use -/MRP_Systems/ instead.

the file convers 100%, but how do i either get rid of these deprecation errors or simply surpress the output

thank you

John

That is a question related to your operating system (the variety of which you haven’t shared), not about LibreOffice. Here’s a start for you:

Suppressing command line output at DuckDuckGo

1 Like

Have you tried to change the command according to the named text?

Use -:0 instead.

Didn’t work? Consider a bug-report if you are suggested something, which didn’t work… But actually it can even be caused by some pre-processing of your shell, as I would expect for example suggesting = for infilter by LibreOffice.

Hi, if i use -:0 then i just get an error saying try using --:0, so basicaly 2 dashes instead of 1

what version is this ?
and more generally : Guidelines for asking - #4 by jimk

just get rid of this.
which by the way doesn’t make sense with –headless

Thank you… I was trying to surpess output and started off with this. I have removed that “display” command but still got the “deprecated” error message. I have now mananged to remove that by using --invisible

thank you anyway.

This is was a bug. The command line options processing must emit these warnings for legal old-fashion single-dash options like -display and -outdir (which you actually use), suggesting to use --display and --outdir instead. But the code tells you not the obsolete option name, but its argument. (But reading the code, your issue simply can’t happen … so the advise to provide your version is very important.)

  1. Replace -display and -outdir with --display and --outdir.
  2. File a bug report, if your version is new.

EDIT: heh, it was myself who filed and fixed tdf#119194 back in 2018 for the ancient version 6.1.

By the way: what is that /MRP_Systems/ before /John.csv in your command line for? Note that there, (absolute or relative) filenames are expected, not directories.