-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: fmrl-client action: commit revision: path_from: revision_from: 339fd7bcc99d6fb189dc22bccffafd457d683e75: path_to: revision_to:
commit 339fd7bcc99d6fb189dc22bccffafd457d683e75 Author: epoch <epoch@enzo.thebackupbox.net> Date: Sun Apr 3 02:37:49 2022 +0000 made -h, --help, and no args print a usage message diff --git a/fmrl-update-with-patch b/fmrl-update-with-patch
--- a/fmrl-update-with-patch +++ b/fmrl-update-with-patch @@ -20,6 +20,13 @@ if [ ! "$user" -o ! "$host" ];then exit 1 fi +if [ "$1" == "--help" -o "$1" == "-h" -o ! "$*" ];then + printf "usage: $0 [you@host] [arguments to pass to fmrl-make-json]\n" + printf "if you@host is missing, it will try to use the value in ~/.config/fmrl-client/me\n" + printf "fmrl-make-json's --help:\n" + exec fmrl-make-json "$1" +fi + file="$(fmrl-make-json "$@")" echo "going to PATCH this:"
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 16:39:01 2024