add getopt options to sm-client cli, esp for testing upload