Where can I get a list of command options for bitcoind and primcoind?
bitcoind help lists the RPC commands. listaccounts is a RPC command. bitcoind --help lists the commandline options to the program itself.

EDIT:
You can also use bitcoind help [RPC command] for a brief description.