~fmac/pasticcio

868041c64f92fe3999e1a4601f656d9f4ec6767c — Francesco Camuffo a month ago 7315fdb
cvcv.sh: usage: explain RANDID
1 files changed, 4 insertions(+), 1 deletions(-)

M cmd/misc/sh/cvcv
M cmd/misc/sh/cvcv => cmd/misc/sh/cvcv +4 -1
@@ 7,13 7,14 @@
PASTHOST=${PASTHOST:="https://cvcv.cz"}

usage() {
	printf "%s\n" "Usage: ${0##*/} [options...] [FILE]"
	printf "%s\n" "Usage: ${0##*/} [options...] [FILE] [RANDID]"
	printf "\t%s\n" "-h: print this help."
	printf "\t%s\n" "-p: create a paste."
	printf "\t%s\n" "-P: make it public."
	printf "\t%s\n" "-l: specify the RandID length."
	printf "\n"
	printf "\t%s\n" "FILE: file to submit. If empty or '-', read stdin."
	printf "\t%s\n" "RANDID: RandID to fetch (no -p)."
	printf "\n"
	printf "\t%s\n" "env:"
	printf "\t%s\n" "PASTHOST: remote host. Default: cvcv.cz."


@@ 22,6 23,8 @@ usage() {
	printf "\t%s\n" "\$ ${0##*/} -p \$(which ${0##*/})"
	printf "\t%s\n" "example 2:"
	printf "\t%s\n" "\$ echo \"Maynard J. Keenan\"|${0##*/} -p -"
	printf "\t%s\n" "example 3:"
	printf "\t%s\n" "\$ ${0##*/} nudqw7dt"
}

submit_paste() {