Commandline a bit harsh for Merb-1.0

6 views
Skip to first unread message

Jim Freeze

unread,
Nov 8, 2008, 10:21:41 AM11/8/08
to me...@googlegroups.com
Hey, I installed merb and ran it to get some info. It don't like that.
Why the break from standard commandline app behavior?


jdf@merby (ttyp0) 33 /home/jdf > merb
~
~ FATAL: You are not in a Merb application, or you are in a flat
application and have not specified the init file. If you are trying to
create a new merb application, use merb-gen app.
~
jdf@merby (ttyp0) 34 /home/jdf > merb -v
~ Running bootloaders...
~ Storing pid 19778 file to /usr/home/jdf/log/merb.main.pid...
~
~ FATAL: You are not in a Merb application, or you are in a flat
application and have not specified the init file. If you are trying to
create a new merb application, use merb-gen app.
~


--
Jim Freeze

weepy

unread,
Nov 8, 2008, 11:43:37 AM11/8/08
to merb
"merb" runs a server

you have to create a merb app first via "merb-gen"

merb-gen myapp
cd myapp
merb

cheers

weepy

weepy

unread,
Nov 8, 2008, 11:44:09 AM11/8/08
to merb
sorry that should have read:

merb-gen app myapp
cd myapp
merb

jonuts

unread,
Nov 8, 2008, 11:47:44 AM11/8/08
to merb
You can run `merb --version` outside of a merb app to get the current
version info, or `merb --help`, etc. That seems pretty standard to me

Jim Freeze

unread,
Nov 8, 2008, 12:40:05 PM11/8/08
to me...@googlegroups.com
On Sat, Nov 8, 2008 at 10:47 AM, jonuts <gewglest...@gmail.com> wrote:
>
> You can run `merb --version` outside of a merb app to get the current
> version info, or `merb --help`, etc. That seems pretty standard to me

Right. Most apps will tell you that if you just type the name of the app without
arguments. If, the name of the app without arguments is a valid way to
run an app, then the user doesn't get this helpful information.

If typing the name of the app doesn't work (e.g., typing merb outside a merb
directory) it SHOULD give tell you how to get that information. In this case,
it didn't give me any helpful information. I did not want to create a merb app,
I wanted to see what version of merb was installed.

Can we add some info about, 'to get help type merb --version' or something
like that when merb is typed outside a merb directory and without arguments?

Thanks


--
Jim Freeze

Jon Hancock

unread,
Nov 9, 2008, 4:07:49 AM11/9/08
to merb
Jim,
I think your correct. Its a minor bug. I think you should just add
it to lighthouse and hopefully someone will handle it in a bug fix
release.
Jon

On Nov 9, 1:40 am, "Jim Freeze" <jimfre...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages