ExifTool Forum

ExifTool => Developers => Topic started by: ScannerBoy on July 18, 2021, 04:44:05 PM

Title: Lang options when using -stay_open
Post by: ScannerBoy on July 18, 2021, 04:44:05 PM
Currently I am trying to build myself a GUI test interface to exiftool using the -stay_open interface using std::in, out & err.

It sort of works for as far as I have been able to test the stay_open feature, but when I try to pass a -lang option, such as -lang en-ca to that interface it is rejected and the std::err output reports "Invalid TAG name:  lang en-ca"

Running exiftool for the same image file & option on the command line works as expected.
Is this supposed to work or did I miss something relevant in the documentation :-)
Title: Re: Lang options when using -stay_open
Post by: StarGeek on July 18, 2021, 06:43:27 PM
See FAQ #29 (https://exiftool.org/faq.html#Q29)
Title: Re: Lang options when using -stay_open
Post by: ScannerBoy on July 18, 2021, 09:46:34 PM
Those instructions were followed in this test.
Title: Re: Lang options when using -stay_open
Post by: Phil Harvey on July 18, 2021, 10:13:10 PM
StarGeek is correct.  You need a linefeed between -lang and en-ca since you are reading the arguments using the -@ feature.

- Phil
Title: Re: Lang options when using -stay_open
Post by: StarGeek on July 18, 2021, 11:07:53 PM
As it shows in that FAQ with the -d option

-lang
en-ca


not

-lang en-ca
Title: Re: Lang options when using -stay_open
Post by: ScannerBoy on July 19, 2021, 11:49:02 AM
Thank you both, yes, that is what it took, but ....
a trailing space on -lang was another one of the issues.

Also, one cannot have any "-execute" statements in between -lang & en-ca ( I was using -executexx to debug the output) nor anywhere else before the file name (obvious, sort of) in hind sight, though not really, if one assumes -execute to mean 'have a look at what I have sent you and tell me what, if anything is incorrect'.

At least, by now, I understand the -@ protocol better.