Closed epugh closed 3 years ago
I looked briefly at the specs, and it doesn't appear there is a test for "Eric Pugh"
type pattern.
I was previosly using 0.19.4 and then upgraded to 1.1.0 as part of migrating to Rails 5.
OMG... So, turns out not to be a thor issue.... I am passing this thor command into a Docker environment. bin/docker r
is a ruby script that takes the params in, and runs the script. By escaping the \"
it works. I have some sort of escaping issue in my bin/docker r
command.
bin/docker r thor user:create foo@example.com \"Eric Pugh\" mysuperstrongpassword
For the next person, here is my use of shellwords
to deal with escaping: https://github.com/o19s/quepid/pull/340/commits/badc6f1d3487f2e323778cbd932acd819c601660
Parameters that are made up of multiple words, wrapped in double quotes, seem to be treated as seperate parameters.
So for this definition:
Is throwing an error because the parameter for
name
is"Eric Pugh"
but Thor thinks I am giving four parameters: