# Script/generate --pretend; Won't

**URL:** <https://www.ruby-forum.com/t/script-generate-pretend-wont/63374>\
**Category:** Rails\
**Created:** [June 14, 2006, 5:46pm UTC](https://www.ruby-forum.com/t/script-generate-pretend-wont/63374 "2006-06-14T17:46:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wksmall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Post date:** [June 14, 2006, 5:46pm UTC](https://www.ruby-forum.com/t/script-generate-pretend-wont/63374/1 "2006-06-14T17:46:06Z")

</div>

Cannot pretend:

> ruby script\generate --pretend controller entryform index  
> Couldn’t find ‘–pretend’ generator

I just wanted to see what files it would generate…

Warren Fred

---

<div class="post-metadata">

**Author:** ![wksmall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Post date:** [June 14, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/script-generate-pretend-wont/63374/2 "2006-06-14T18:43:06Z")

</div>

Warren S. wrote:

> Cannot pretend:
> 
> > ruby script\generate --pretend controller entryform index  
> > Couldn’t find ‘–pretend’ generator
> 
> I just wanted to see what files it would generate…
> 
> Warren Fred

I get the same thing. Try appending --pretend to the end of the generate  
command, instead. Example:

script/generate controller entryform index --pretend

That should do the trick.

---

<div class="post-metadata">

**Author:** ![wksmall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Post date:** [June 14, 2006, 11:56pm UTC](https://www.ruby-forum.com/t/script-generate-pretend-wont/63374/3 "2006-06-14T23:56:29Z")

</div>

Warren,

Despite what the command documentation says ( “Usage: script/generate  
[options] generator [args]”), the usage is actually this:

-\> script/generate generator [options] [args]

So you might want to try:

-\> ruby script\generate controller --pretend entryform index

-christos
