diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-20 14:51:00 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-20 14:52:01 +0900 |
commit | e5d7b98fbd5f1903ac5e85a2bf85bb769789d570 (patch) | |
tree | 178f906d8033b18becca300046872e9ae71adf56 /guides/source/getting_started.md | |
parent | 7c6343078a566264ce6df6e531c9790ff2d2f432 (diff) | |
download | rails-e5d7b98fbd5f1903ac5e85a2bf85bb769789d570.tar.gz rails-e5d7b98fbd5f1903ac5e85a2bf85bb769789d570.tar.bz2 rails-e5d7b98fbd5f1903ac5e85a2bf85bb769789d570.zip |
Make aliases of `database` option in generators work
Thor automatically adds `-` if aliases do not start with `-`.
https://github.com/erikhuda/thor/blob/0879c1773d188902d54f95174f33961ac33111f8/lib/thor/parser/options.rb#L53
But Thor follows a convention of one-dash-one-letter options.
So, even if `-` is added to `db`, it does not work.
https://github.com/erikhuda/thor/blob/0879c1773d188902d54f95174f33961ac33111f8/lib/thor/parser/options.rb#L4
Follow up #34021.
Diffstat (limited to 'guides/source/getting_started.md')
0 files changed, 0 insertions, 0 deletions