app_prefer_commandline option
Add tests for app_prefer_commandline and parameter preference
Update documentation