Fix synchronize command so that it accepts an argument.

The argument could be any of:
  code|data|both|code data|data code