Pass ARGV or the subcommand options following a '--' to Trollop.
Pass ARGV or the subcommand options following a '--' to Trollop.

Rake before 10.4.0 would delete the '--' from ARGV, leaving all other options.
Trollop would then process all of ARGV, including subcommand options.

Starting in rake 10.4.0, ARGV is not modified and our '--' detection only
expected '--' if invoked from rails/runner, not rake directly.
Now, the ARGV passed to trollop included '--'. Trollop, correctly doesn't
process subcommand options following '--', so we must
always extract any subcommand options and pass them to trollop.

Note: Rake 10.4.0 was released November 25, 2014

Fixes #1412
We loosened the rake dependency here: 03c62bcc510

Rake commit that no longer modified ARGV:
https://github.com/ruby/rake/commit/a36505d33f873f8f475a28dc4fc48a913b82e8eb

[skip ci]

NickLaMuro/manageiq,djberg96/manageiq,yaacov/manageiq,agrare/manageiq,NaNi-Z/manageiq,fbladilo/manageiq,tzumainn/manageiq,branic/manageiq,mkanoor/manageiq,pkomanek/manageiq,romaintb/manageiq,ailisp/manageiq,durandom/manageiq,aufi/manageiq,fbladilo/manageiq,aufi/manageiq,mfeifer/manageiq,andyvesel/manageiq,gerikis/manageiq,aufi/manageiq,chessbyte/manageiq,tinaafitz/manageiq,mkanoor/manageiq,fbladilo/manageiq,jameswnl/manageiq,agrare/manageiq,matobet/manageiq,mzazrivec/manageiq,tinaafitz/manageiq,tinaafitz/manageiq,kbrock/manageiq,romanblanco/manageiq,maas-ufcg/manageiq,ilackarms/manageiq,mresti/manageiq,KevinLoiseau/manageiq,lpichler/manageiq,maas-ufcg/manageiq,jrafanie/manageiq,gerikis/manageiq,jvlcek/manageiq,chessbyte/manageiq,syncrou/manageiq,branic/manageiq,romaintb/manageiq,billfitzgerald0120/manageiq,lpichler/manageiq,israel-hdez/manageiq,NaNi-Z/manageiq,syncrou/manageiq,NaNi-Z/manageiq,gmcculloug/manageiq,borod108/manageiq,juliancheal/manageiq,israel-hdez/manageiq,jrafanie/manageiq,kbrock/manageiq,KevinLoiseau/manageiq,matobet/manageiq,branic/manageiq,josejulio/manageiq,matobet/manageiq,maas-ufcg/manageiq,pkomanek/manageiq,ManageIQ/manageiq,skateman/manageiq,tzumainn/manageiq,chessbyte/manageiq,KevinLoiseau/manageiq,d-m-u/manageiq,tzumainn/manageiq,jvlcek/manageiq,agrare/manageiq,hstastna/manageiq,josejulio/manageiq,mfeifer/manageiq,romanblanco/manageiq,jrafanie/manageiq,juliancheal/manageiq,hstastna/manageiq,kbrock/manageiq,mresti/manageiq,djberg96/manageiq,ailisp/manageiq,skateman/manageiq,lpichler/manageiq,hstastna/manageiq,mzazrivec/manageiq,KevinLoiseau/manageiq,KevinLoiseau/manageiq,djberg96/manageiq,jntullo/manageiq,maas-ufcg/manageiq,mzazrivec/manageiq,borod108/manageiq,juliancheal/manageiq,jameswnl/manageiq,d-m-u/manageiq,yaacov/manageiq,jrafanie/manageiq,borod108/manageiq,kbrock/manageiq,ManageIQ/manageiq,ManageIQ/manageiq,romaintb/manageiq,syncrou/manageiq,romaintb/manageiq,maas-ufcg/manageiq,fbladilo/manageiq,gmcculloug/manageiq,NickLaMuro/manageiq,djberg96/manageiq,NaNi-Z/manageiq,KevinLoiseau/manageiq,pkomanek/manageiq,billfitzgerald0120/manageiq,aufi/manageiq,durandom/manageiq,ailisp/manageiq,durandom/manageiq,chessbyte/manageiq,romanblanco/manageiq,mfeifer/manageiq,skateman/manageiq,jntullo/manageiq,romaintb/manageiq,d-m-u/manageiq,andyvesel/manageiq,d-m-u/manageiq,yaacov/manageiq,ilackarms/manageiq,hstastna/manageiq,ilackarms/manageiq,jntullo/manageiq,andyvesel/manageiq,durandom/manageiq,skateman/manageiq,mkanoor/manageiq,israel-hdez/manageiq,pkomanek/manageiq,mzazrivec/manageiq,israel-hdez/manageiq,mfeifer/manageiq,gmcculloug/manageiq,josejulio/manageiq,andyvesel/manageiq,matobet/manageiq,gerikis/manageiq,tzumainn/manageiq,romaintb/manageiq,ilackarms/manageiq,juliancheal/manageiq,romanblanco/manageiq,mresti/manageiq,ManageIQ/manageiq,NickLaMuro/manageiq,yaacov/manageiq,lpichler/manageiq,branic/manageiq,tinaafitz/manageiq,jameswnl/manageiq,jvlcek/manageiq,syncrou/manageiq,NickLaMuro/manageiq,jntullo/manageiq,mresti/manageiq,jameswnl/manageiq,gerikis/manageiq,borod108/manageiq,agrare/manageiq,josejulio/manageiq,mkanoor/manageiq,gmcculloug/manageiq,ailisp/manageiq,billfitzgerald0120/manageiq,jvlcek/manageiq,billfitzgerald0120/manageiq,maas-ufcg/manageiq