With the command ktx foo <options ...> file1 file2 file3 ... where foo uses OptionsSingleInSingleOut, OptionsSingleInSingleOut will use file1 as input, file2 as output and ignore file3. As the last positional parameter is usually the output file sloppy commands could easily lead to unintentional overwrites of file2.
Note that I spotted this in a new command I am developing. Is the command expected to check for excess parameters? I can't find any check in command_encode.
With the command
ktx foo <options ...> file1 file2 file3 ...
where foo uses OptionsSingleInSingleOut, OptionsSingleInSingleOut will use file1 as input, file2 as output and ignore file3. As the last positional parameter is usually the output file sloppy commands could easily lead to unintentional overwrites of file2.Note that I spotted this in a new command I am developing. Is the command expected to check for excess parameters? I can't find any check in
command_encode
.