Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/colors/colorly
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ colorly_usage() {
fi

printf "Usage:\n"
printf " colorly [MESSAGE] [options]\n"
printf " colorly [MESSAGE]\n"
printf " colorly --help | -h\n"
printf " colorly --version | -v\n"
echo
Expand Down
10 changes: 5 additions & 5 deletions examples/command-default/ftp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ftp_usage() {
fi

printf "Usage:\n"
printf " ftp [command] [options]\n"
printf " ftp [command]\n"
printf " ftp [command] --help | -h\n"
printf " ftp --version | -v\n"
echo
Expand Down Expand Up @@ -55,7 +55,7 @@ ftp_upload_usage() {
echo

printf "Usage:\n"
printf " ftp upload SOURCE [options]\n"
printf " ftp upload SOURCE\n"
printf " ftp upload --help | -h\n"
echo

Expand Down Expand Up @@ -91,7 +91,7 @@ ftp_download_usage() {
echo

printf "Usage:\n"
printf " ftp download SOURCE [options]\n"
printf " ftp download SOURCE\n"
printf " ftp download --help | -h\n"
echo

Expand Down Expand Up @@ -237,7 +237,7 @@ ftp_upload_parse_requirements() {
args[source]=$1
shift
else
printf "missing required argument: SOURCE\nusage: ftp upload SOURCE [options]\n"
printf "missing required argument: SOURCE\nusage: ftp upload SOURCE\n"
exit 1
fi
# :command.required_flags_filter
Expand Down Expand Up @@ -292,7 +292,7 @@ ftp_download_parse_requirements() {
args[source]=$1
shift
else
printf "missing required argument: SOURCE\nusage: ftp download SOURCE [options]\n"
printf "missing required argument: SOURCE\nusage: ftp download SOURCE\n"
exit 1
fi
# :command.required_flags_filter
Expand Down
14 changes: 7 additions & 7 deletions examples/command-groups/ftp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ftp_usage() {
fi

printf "Usage:\n"
printf " ftp [command] [options]\n"
printf " ftp [command]\n"
printf " ftp [command] --help | -h\n"
printf " ftp --version | -v\n"
echo
Expand Down Expand Up @@ -55,7 +55,7 @@ ftp_download_usage() {
fi

printf "Usage:\n"
printf " ftp download FILE [options]\n"
printf " ftp download FILE\n"
printf " ftp download --help | -h\n"
echo

Expand Down Expand Up @@ -88,7 +88,7 @@ ftp_upload_usage() {
fi

printf "Usage:\n"
printf " ftp upload FILE [options]\n"
printf " ftp upload FILE\n"
printf " ftp upload --help | -h\n"
echo

Expand Down Expand Up @@ -121,7 +121,7 @@ ftp_login_usage() {
fi

printf "Usage:\n"
printf " ftp login [options]\n"
printf " ftp login\n"
printf " ftp login --help | -h\n"
echo

Expand All @@ -146,7 +146,7 @@ ftp_logout_usage() {
fi

printf "Usage:\n"
printf " ftp logout [options]\n"
printf " ftp logout\n"
printf " ftp logout --help | -h\n"
echo

Expand Down Expand Up @@ -310,7 +310,7 @@ ftp_download_parse_requirements() {
args[file]=$1
shift
else
printf "missing required argument: FILE\nusage: ftp download FILE [options]\n"
printf "missing required argument: FILE\nusage: ftp download FILE\n"
exit 1
fi
# :command.required_flags_filter
Expand Down Expand Up @@ -365,7 +365,7 @@ ftp_upload_parse_requirements() {
args[file]=$1
shift
else
printf "missing required argument: FILE\nusage: ftp upload FILE [options]\n"
printf "missing required argument: FILE\nusage: ftp upload FILE\n"
exit 1
fi
# :command.required_flags_filter
Expand Down
18 changes: 9 additions & 9 deletions examples/commands-nested/cli
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cli_usage() {
fi

printf "Usage:\n"
printf " cli [command] [options]\n"
printf " cli [command]\n"
printf " cli [command] --help | -h\n"
printf " cli --version | -v\n"
echo
Expand Down Expand Up @@ -55,7 +55,7 @@ cli_dir_usage() {
echo

printf "Usage:\n"
printf " cli dir [command] [options]\n"
printf " cli dir [command]\n"
printf " cli dir [command] --help | -h\n"
echo
# :command.usage_commands
Expand Down Expand Up @@ -85,7 +85,7 @@ cli_dir_list_usage() {
fi

printf "Usage:\n"
printf " cli dir list PATH [options]\n"
printf " cli dir list PATH\n"
printf " cli dir list --help | -h\n"
echo

Expand Down Expand Up @@ -158,7 +158,7 @@ cli_file_usage() {
echo

printf "Usage:\n"
printf " cli file [command] [options]\n"
printf " cli file [command]\n"
printf " cli file [command] --help | -h\n"
echo
# :command.usage_commands
Expand Down Expand Up @@ -188,7 +188,7 @@ cli_file_show_usage() {
fi

printf "Usage:\n"
printf " cli file show PATH [options]\n"
printf " cli file show PATH\n"
printf " cli file show --help | -h\n"
echo

Expand Down Expand Up @@ -221,7 +221,7 @@ cli_file_edit_usage() {
fi

printf "Usage:\n"
printf " cli file edit PATH [options]\n"
printf " cli file edit PATH\n"
printf " cli file edit --help | -h\n"
echo

Expand Down Expand Up @@ -448,7 +448,7 @@ cli_dir_list_parse_requirements() {
args[path]=$1
shift
else
printf "missing required argument: PATH\nusage: cli dir list PATH [options]\n"
printf "missing required argument: PATH\nusage: cli dir list PATH\n"
exit 1
fi
# :command.required_flags_filter
Expand Down Expand Up @@ -632,7 +632,7 @@ cli_file_show_parse_requirements() {
args[path]=$1
shift
else
printf "missing required argument: PATH\nusage: cli file show PATH [options]\n"
printf "missing required argument: PATH\nusage: cli file show PATH\n"
exit 1
fi
# :command.required_flags_filter
Expand Down Expand Up @@ -687,7 +687,7 @@ cli_file_edit_parse_requirements() {
args[path]=$1
shift
else
printf "missing required argument: PATH\nusage: cli file edit PATH [options]\n"
printf "missing required argument: PATH\nusage: cli file edit PATH\n"
exit 1
fi
# :command.required_flags_filter
Expand Down
2 changes: 1 addition & 1 deletion examples/commands/cli
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cli_usage() {
fi

printf "Usage:\n"
printf " cli [command] [options]\n"
printf " cli [command]\n"
printf " cli [command] --help | -h\n"
printf " cli --version | -v\n"
echo
Expand Down
14 changes: 7 additions & 7 deletions examples/config-ini/configly
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ configly_usage() {
fi

printf "Usage:\n"
printf " configly [command] [options]\n"
printf " configly [command]\n"
printf " configly [command] --help | -h\n"
printf " configly --version | -v\n"
echo
Expand Down Expand Up @@ -56,7 +56,7 @@ configly_set_usage() {
echo

printf "Usage:\n"
printf " configly set KEY VALUE [options]\n"
printf " configly set KEY VALUE\n"
printf " configly set --help | -h\n"
echo

Expand Down Expand Up @@ -103,7 +103,7 @@ configly_get_usage() {
echo

printf "Usage:\n"
printf " configly get KEY [options]\n"
printf " configly get KEY\n"
printf " configly get --help | -h\n"
echo

Expand Down Expand Up @@ -145,7 +145,7 @@ configly_list_usage() {
echo

printf "Usage:\n"
printf " configly list [options]\n"
printf " configly list\n"
printf " configly list --help | -h\n"
echo

Expand Down Expand Up @@ -410,15 +410,15 @@ configly_set_parse_requirements() {
args[key]=$1
shift
else
printf "missing required argument: KEY\nusage: configly set KEY VALUE [options]\n"
printf "missing required argument: KEY\nusage: configly set KEY VALUE\n"
exit 1
fi

if [[ $1 && $1 != -* ]]; then
args[value]=$1
shift
else
printf "missing required argument: VALUE\nusage: configly set KEY VALUE [options]\n"
printf "missing required argument: VALUE\nusage: configly set KEY VALUE\n"
exit 1
fi
# :command.required_flags_filter
Expand Down Expand Up @@ -476,7 +476,7 @@ configly_get_parse_requirements() {
args[key]=$1
shift
else
printf "missing required argument: KEY\nusage: configly get KEY [options]\n"
printf "missing required argument: KEY\nusage: configly get KEY\n"
exit 1
fi
# :command.required_flags_filter
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-includes/download
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ download_usage() {
fi

printf "Usage:\n"
printf " download [SOURCE] [options]\n"
printf " download [SOURCE]\n"
printf " download --help | -h\n"
printf " download --version | -v\n"
echo
Expand Down
6 changes: 3 additions & 3 deletions examples/dependencies/cli
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cli_usage() {
fi

printf "Usage:\n"
printf " cli [command] [options]\n"
printf " cli [command]\n"
printf " cli [command] --help | -h\n"
printf " cli --version | -v\n"
echo
Expand Down Expand Up @@ -52,7 +52,7 @@ cli_download_usage() {
fi

printf "Usage:\n"
printf " cli download [options]\n"
printf " cli download\n"
printf " cli download --help | -h\n"
echo

Expand All @@ -77,7 +77,7 @@ cli_upload_usage() {
fi

printf "Usage:\n"
printf " cli upload [options]\n"
printf " cli upload\n"
printf " cli upload --help | -h\n"
echo

Expand Down
16 changes: 8 additions & 8 deletions examples/docker-like/docker
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ docker_usage() {
fi

printf "Usage:\n"
printf " docker [command] [options]\n"
printf " docker [command]\n"
printf " docker [command] --help | -h\n"
printf " docker --version | -v\n"
echo
Expand Down Expand Up @@ -55,7 +55,7 @@ docker_container_usage() {
echo

printf "Usage:\n"
printf " docker container [command] [options]\n"
printf " docker container [command]\n"
printf " docker container [command] --help | -h\n"
echo
# :command.usage_commands
Expand Down Expand Up @@ -85,7 +85,7 @@ docker_container_run_usage() {
fi

printf "Usage:\n"
printf " docker container run IMAGE [options]\n"
printf " docker container run IMAGE\n"
printf " docker container run --help | -h\n"
echo

Expand Down Expand Up @@ -118,7 +118,7 @@ docker_container_stop_usage() {
fi

printf "Usage:\n"
printf " docker container stop CONTAINER [options]\n"
printf " docker container stop CONTAINER\n"
printf " docker container stop --help | -h\n"
echo

Expand Down Expand Up @@ -154,7 +154,7 @@ docker_image_usage() {
echo

printf "Usage:\n"
printf " docker image [command] [options]\n"
printf " docker image [command]\n"
printf " docker image [command] --help | -h\n"
echo
# :command.usage_commands
Expand Down Expand Up @@ -186,7 +186,7 @@ docker_image_ls_usage() {
echo

printf "Usage:\n"
printf " docker image ls [options]\n"
printf " docker image ls\n"
printf " docker image ls --help | -h\n"
echo

Expand Down Expand Up @@ -396,7 +396,7 @@ docker_container_run_parse_requirements() {
args[image]=$1
shift
else
printf "missing required argument: IMAGE\nusage: docker container run IMAGE [options]\n"
printf "missing required argument: IMAGE\nusage: docker container run IMAGE\n"
exit 1
fi
# :command.required_flags_filter
Expand Down Expand Up @@ -451,7 +451,7 @@ docker_container_stop_parse_requirements() {
args[container]=$1
shift
else
printf "missing required argument: CONTAINER\nusage: docker container stop CONTAINER [options]\n"
printf "missing required argument: CONTAINER\nusage: docker container stop CONTAINER\n"
exit 1
fi
# :command.required_flags_filter
Expand Down
4 changes: 2 additions & 2 deletions examples/environment-variables/cli
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cli_usage() {
fi

printf "Usage:\n"
printf " cli [command] [options]\n"
printf " cli [command]\n"
printf " cli [command] --help | -h\n"
printf " cli --version | -v\n"
echo
Expand Down Expand Up @@ -62,7 +62,7 @@ cli_verify_usage() {
echo

printf "Usage:\n"
printf " cli verify [options]\n"
printf " cli verify\n"
printf " cli verify --help | -h\n"
echo

Expand Down
Loading