How To Use The Jointlattice Command?

How to use the jointLattice command?Sounds interesting but i can't figure out how it works.The help examples are confusing

CODE
jointLattice -joint joint2 -upperBindSkin joint1Cluster1 -lowerBindSkin joint2Cluster2;

-joint joint2 this means which joint you want to edit or create or modify

-upperBindSkin joint1Cluster1 means joint2 will have a skincluster and it is in the higher hirarchy and u can
mention your uper joint cluster here or thourgh code you can qury this and pass it
as a argument

all the commands like this only and for single edit may u can pass like this
but if u do a auto rig ssystem i think you want to pass as argumnets means you want
to qury the info and pass it

I don't understand you at all sorry.

Tell me what you have in scene.Joint2 is skinned to something.That skin node is put in -upperBindSkin flag?