needMultipleInstances

Check if application should be started multiple times to open multiple urls.

@nogc @safe
bool
needMultipleInstances
pure nothrow
(
in string[] execArgs
)

Parameters

execArgs
Type: string[]

Array of unescaped and unquoted arguments.

Return Value

Type: bool

true if execArgs have only %f or %u and not %F or %U. Otherwise false is returned.

Examples

1 assert(needMultipleInstances(["program", "%f"]));
2 assert(needMultipleInstances(["program", "%u"]));
3 assert(!needMultipleInstances(["program", "%i"]));
4 assert(!needMultipleInstances(["program", "%F"]));
5 assert(!needMultipleInstances(["program", "%U"]));
6 assert(!needMultipleInstances(["program", "%f", "%U"]));
7 assert(!needMultipleInstances(["program", "%F", "%u"]));

See Also

Meta