[master] 33ffbbc5b Add -p option to varnishadm usage

Dridi Boukelmoune dridi at varni.sh
Mon Sep 13 13:22:45 UTC 2021


On Mon, Sep 13, 2021 at 12:49 PM Nils Goroll <nils.goroll at uplex.de> wrote:
>
>
> commit 33ffbbc5b04849428621fc29b69d826dae3a1847
> Author: Nils Goroll <nils.goroll at uplex.de>
> Date:   Mon Sep 13 14:47:33 2021 +0200
>
>     Add -p option to varnishadm usage
>
>     and sort options alphabetically while being at it.
>
>     Relates to ##3687
>
> diff --git a/bin/varnishadm/varnishadm.c b/bin/varnishadm/varnishadm.c
> index d95cc8845..913584bb3 100644
> --- a/bin/varnishadm/varnishadm.c
> +++ b/bin/varnishadm/varnishadm.c
> @@ -369,8 +369,8 @@ static void v_noreturn_
>  usage(int status)
>  {
>         fprintf(stderr,
> -           "Usage: varnishadm [-h] [-n ident] [-t timeout] [-S secretfile] "
> -           "[-T [address]:port] [command [...]]\n");
> +           "Usage: varnishadm [-h] [-p] [-n ident] [-S secretfile] "
> +           "[-t timeout] [-T [address]:port] [command [...]]\n");

How dare you break lexicographic order? (n < p && T < t)


>         fprintf(stderr, "\t-n is mutually exclusive with -S and -T\n");
>         exit(status);
>  }
> _______________________________________________
> varnish-commit mailing list
> varnish-commit at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit


More information about the varnish-commit mailing list