fish: help command return error for non-existent commands (RHBZ#597145).
authorRichard Jones <rjones@redhat.com>
Tue, 1 Jun 2010 15:27:33 +0000 (16:27 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 2 Jun 2010 18:47:09 +0000 (19:47 +0100)
commit4b845ee849632985d7ab5a59ac28184f4c9643e5
treee92f894e0c89879c8bda00cbe9bdc80bf61d8396
parentfb0ba47674e3f17c6076b79cec0939960084716d
fish: help command return error for non-existent commands (RHBZ#597145).

With this change, the exit status indicates error for non-existent
commands.

$ guestfish -h foo
foo: command not known, use -h to list all commands
$ echo $?
1
$ guestfish help foo
foo: command not known, use -h to list all commands
$ echo $?
1

For stable-1.2 branch:
 - cherry picked from commit f2b7a8e15c49ebc70c7ea56aefb340362aae5a99
 - rebased for the 1.2 branch
fish/fish.c
fish/fish.h
src/generator.ml