import std.algorithm; int main(string[] options) { // true if the first option given to this program is either foo, bar, or baz. if(options[1].canFind("foo", "bar", "baz")) return 0; return 1; }