As the encounter unfolds and the attacker approaches you draw and use your ranged tool first.
This assumes you even know its going to be a fight. A knife can easily be concealed, and ready for use, in basically plain sight. If the person appears unarmed, even if you dont like the "feeling" of the whole thing, at what point do you have your gun out ready to shoot?
For stuff like this, this is where airsoft and rubber training knives are great. You can actually work some of this out, and see what is 'real" and what sounds good in theory, but doesnt play out well in practice. I think youll find some things are eye openers.
One other thing, if theres a knife present, and the person with it has even just a little knowledge of how to use it, and is the least bit determined, plan on getting cut.
i guess it depends how fast and accurately you can throw that knife, sir.
Back to John Wayne movies.
Other than for fun, I never understood why people think throwing a good knife (and possibly your only weapon) away was a good idea. Im bringing mine with me, and Ill be there in a second.
I think some of the thoughts here tend to run to this being a gun board and we are gun people. The "gun" tends to the solution to all the problems. When you start bringing up close contact, grappling, and knives, etc, people seem to become uncomfortable. Unfortunately, in real life, a lot of this is real life, and if you think the gun is all you need, and you dont have any other skills, your likely to be in for a rude awakening.