Pistols for two, coffee for one

"Pistols for two, coffee for one". Please provide the origin of this phrase.

Very common by the 1830's US and UK,
dates from 1820's, sometimes said as
pistols for two, and breakfast for one.
Even Charles Dickens used it.