finished API for setting format prefs via command line.