[PATCH] Provide --help option to display usage of plymouth-set-default-theme

Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sat Dec 5 06:19:27 PST 2009


Hi,

On Sat, Dec 05, 2009 at 02:45:09PM +0100, Adrian Glaubitz wrote:
> when running new, unfamiliar commands I usually invoke them with
> --help to see what options they have. For plymouth-set-default-theme,
> there is no --help option which I find a bit confusing, especially
> since the usage is not straight-forward. Since there is a usage
> function in the script anyway, I wrote a small patch to provide a
> --help option to display the usage.
> 
> Moreover, I think, the usage output should be overhauled a bit, but I
> think that should go into a second patch.

I have improved the previous patch a bit and now there is an
additional function "show_help" which displays an extensive help when
invoking plymouth-set-default-theme with --help. The original function
usage is still there since it always be called when the script is
invoked with wrong parameters.

Please see the attached new patch.


Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plymouth_provide_better_help.patch
Type: text/x-diff
Size: 1508 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/plymouth/attachments/20091205/ea3ab38d/attachment.patch 


More information about the plymouth mailing list