• Dridi Boukelmoune's avatar
    Expose the varnishd optstring via -x · e0970652
    Dridi Boukelmoune authored
    This helps write scripts like this:
    
        optstring=$(varnishd -x optstring)
    
        while getopts $optstring opt
        do
            case $opt in
            n)
                # handle $OPTARG
                ;;
            # handle other options
            *)
                # ignore unneeded options
                ;;
            esac
        done
    
        varnishd "$@"
    
    Otherwise if optstring is not kept in sync, getopts will stop processing
    options if it encounters one that is not specified.
    e0970652
mgt_main.c 20.5 KB