Add usage() for git-send-xmpp and header for git-send-paste

Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>
このコミットが含まれているのは:
Aoi K 2022-11-11 22:21:44 -03:00
コミット 86f3fa009b
2個のファイルの変更11行の追加0行の削除

ファイルの表示

@ -1,4 +1,8 @@
#!/bin/sh
# $KyokoNet: git-send-paste, v 0.1.0 2022/11/11 22:20:00 akoizumi Exp $
#
# Send git patches to a pastebin endpoint using nc(1)
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
usage() {
printf "Usage: %s --diff=<diff> --paste=<paste>\n" "${0##/*}"

ファイルの表示

@ -4,6 +4,13 @@
# Send git patches over the XMPP protocol
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
usage() {
cat <<EOF
Usage
git-send-xmpp --diff=<patch file> --pass=<password> --user=<user> --target=<target>
EOF
}
for arg; do
case $arg in
-h) usage ;;