From: Andre Noll Date: Sun, 24 Aug 2014 14:57:08 +0000 (+0200) Subject: gsu: Improve help text of complete subcommand. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=78b228b3b32eec0578f87f7bf7407691d610bcad;hp=c157c64bf6bd571494985409944421caeef0c063 gsu: Improve help text of complete subcommand. The current help text talks about two forms to run this command, but only one is mentioned. This commit tries to clarify that the function behaves differently when called without argument. --- diff --git a/misc/gsu/subcommand b/misc/gsu/subcommand index 43f7df7..4e36362 100644 --- a/misc/gsu/subcommand +++ b/misc/gsu/subcommand @@ -202,11 +202,13 @@ Command line completion. Usage: complete [ ...] -In the first form, the command prints all possible completions to stdout. -This can be used from the completion function of the shell. +When executed without argument the command writes bash code to +stdout. This code is suitable to be evaled from .bashrc to enable +completion. -Completion code suitable to be evaled is written to stdout if no argument -was given. +If at least one argument is given, all possible completions are +written to stdout. This can be used from the completion function of +the subcommand. " _com_help()