fix gf run custom arguments and gf gen dao specify config file path #1879
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
不知为何gf gen dao工具一直没有把指定配置路径选项完善一下, 不是很常用吗
https://goframe.org/pages/viewpage.action?pageId=3673173 的使用方式示例
gf gen dao -p ./model -c config.yaml -g user-center -t user,user_detail,user_login
-c 一直用不了, 短命令已被 DescriptionTag 占用了 short命令找不到合适的就用了cfg
以下测试没问题
gf gen dao -p ./src -cfg ./myconf/conf.toml
之前使用 gf run main.go --args "-www ./product debug true" 一直没法把参数传进去
经测试以下两运行方式接收到的参数一致
$ gf run main.go --args "-www ./product -debug true"
$ ./main -www ./product -debug true