DocoptArgumentError.position

size_t position() const @safe pure nothrow @nogc

Returns the position (0-based index) in argv where mismatch occurred. If unknown, this may be 0 or a sentinel depending on the throw site.