Using an argument file

Started by gmcgath, February 09, 2016, 08:55:08 AM

Previous topic - Next topic

gmcgath

I'm trying a simple test to understand how argument files work. It does what I expect, except that there's an warning message I don't understand. The argument file has the following:

-title="This is the title"
-o
Title Tag.mie

Then I run: exiftool -@ demo.args

This creates the file "Title Tag.mie" with the appropriate title tag, but it also gives the message "Ignored superfluous tag name or invalid option: -o". If I give the same arguments on the command line, even in verbose mode, I don't see a warning. Am I doing something wrong, and if so why does it work anyway? Thanks.

Phil Harvey

You have a space after -o that is causing the warning.

There is also a space at the end of the title line.

As well, you should not quote arguments in an argfile.  So your argfile should be:

-title=This is the title
-o
Title Tag.mie


- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).