allow user to specify filename on the commandline and avoid the file dia...

 allow user to specify filename on the commandline and avoid the open-file dialog. 允许用户用命令行给出保存文件名，省去文件选择对话框。

This feature is very important for command-line users, please consider accepting this pull request
or better, implement an equivalent one in a way that you deem suitable.