drizzled: --help should work in any circumstances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Medium
|
coldtobi |
Bug Description
Hallo,
drizzled --help should to print the help message and then exit. It should not do other things or do some other funny things.
Especially it should not try to spawn a daemon, which appeareantly it tries...
Example:
# NB: I'm root here.
# lets see what options we have.... The man tells to say drizzled --verbose --help
drizzled --verbose --help
Aborting:"required parameter is missing in 'verbose'. Use --help to get a list of available options. ". Abort was called from drizzled/
# ok, bug in man.... (I'll report that later)
drizzled --help
Aborting:"drizzled cannot be run as root, use --user to start drizzled up as another user". Abort was called from drizzled/
# mmmh, whats the option to set a user?
drizzled --help --user drizzle
Aborting:"Can't start server, was unable to create PID file: mordor.
# Why it is try to set the pid file -- all i wanted is the help? (Actually I tried to debug the cannot-
coldtobi
Related branches
- Brian Aker: Needs Information
- Clint Byrum (community): Approve
-
Diff: 27 lines (+6/-4)1 file modifieddrizzled/drizzled.cc (+6/-4)
Changed in drizzle: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in drizzle: | |
assignee: | nobody → coldtobi (tobi-coldtobi) |
status: | Triaged → Fix Released |
milestone: | none → 7.2.4 |
See attached patch.
The patch tries to emit the help as soon as possible. before parsing the options.