use less reflection in command line method invocation
Merge remote-tracking branch 'upstream/master'

Conflicts:
	commands.go
Merge pull request #1963 from rogpeppe/master

Client: Use less reflection in command-line method invocation