To be honest, I've never even seen that syntax used before -- redirection of input/output obviously yes...
It's a sign you can be writing systems management software for well over a decade and not learn all the bash things.
Basically right now it takes either a string - for a very deprecated use case we don't really document, or a filename or directory name.
A quick way to solve what you want to do, BTW, is just put both in the same directory
-i directoryname
will load all files int he one directory
and then use "--limit groupname" to limit ansible to just what you want to select.
(Be careful to not forget the limit!)
That's the way pretty much everyone approaches that, anyway :)
Another option would be use "-i directoryname" and just be particular about what your "hosts:" stanza would address.
I'm open to make this loading be more generic provided we be careful to not break any current possibilities, but am not entirely sure what is involved.