Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit e308f00

Browse files
committed
add help to fetch command
1 parent ce31d4c commit e308f00

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

bin/op-ssh-fetch

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,27 @@
33
dirname="$(dirname "$(realpath $0)")"
44
source "$dirname/../common.sh"
55

6+
function print_help {
7+
echo "Usage:"
8+
echo " $0 [options] [arguments to 'op signin']"
9+
echo " $0 -h"
10+
echo
11+
echo "Options:"
12+
echo " -h Print this help and exit"
13+
echo " -n Exit immediately and return 0 if keys have already been pulled"
14+
echo
15+
echo "See 'op signin --help' for additional arguments to 'op signin'."
16+
echo "(If you run 'op signin' at least once before running this script"
17+
echo "you shouldn't need any additional arguments.)"
18+
}
19+
620
OPTIND=1
721
while getopts "hn" opt; do
822
case "$opt" in
23+
h)
24+
print_help
25+
exit 0
26+
;;
927
n)
1028
if [ -f "$temp_storage_root/ssh_config" ]; then
1129
exit 0

0 commit comments

Comments
 (0)