Add usage() for git-send-xmpp and header for git-send-paste
Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>
このコミットが含まれているのは:
コミット
86f3fa009b
|
@ -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 ;;
|
||||
|
|
読み込み中…
新しいイシューから参照