[pacman-dev] [PATCH] Fix typo in help message

Allan McRae allan at archlinux.org
Wed Feb 15 21:00:05 EST 2012


On 16/02/12 10:47, Eric Bélanger wrote:
> Close FS#28434
> 
> Signed-off-by: Eric Bélanger <snowmaniscool at gmail.com>
> ---
>  contrib/pacsysclean.in |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/contrib/pacsysclean.in b/contrib/pacsysclean.in
> index 17f7681..28c1493 100755
> --- a/contrib/pacsysclean.in
> +++ b/contrib/pacsysclean.in
> @@ -13,7 +13,7 @@ usage() {
>         echo "Usage: $myname [options]"
>         echo
>         echo "Options:"
> -       echo "  -o <options>     Specify custom pacman query options (e.g., dt)"
> +       echo "  -o <options>     Specify custom pacman query options (e.g., -dt)"
>         echo "  -h, --help       Show this help message and exit"
>  }
>  

Adding "-" in front of the options for pacman looks weird to me.   How
about just adding:

[[ $PACMAN_OPTS != -* ]] && PACMAN_OPTS="-$PACMAN_OPTS"

Then "-o -dt" and "-o dt" will work.

Allan


More information about the pacman-dev mailing list