Commit 043fcb8a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-tool: improve help

parent b2fd7f3f
#!/bin/sh #!/bin/sh
# #
# Copyright (C) 2022 Etersoft # Copyright (C) 2022, 2023 Etersoft
# Copyright (C) 2022 Vitaly Lipatov <lav@etersoft.ru> # Copyright (C) 2022, 2023 Vitaly Lipatov <lav@etersoft.ru>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by # it under the terms of the GNU Affero General Public License as published by
...@@ -29,21 +29,24 @@ epm_tool() ...@@ -29,21 +29,24 @@ epm_tool()
fatal "Use epm tool help to get help." fatal "Use epm tool help to get help."
;; ;;
"-h"|"--help"|"help") "-h"|"--help"|"help")
echo "Tools embedded in epm:"
get_help HELPCMD $SHAREDIR/epm-tool
cat <<EOF cat <<EOF
Examples: Examples:
epm tool eget epm tool eget -U http://ya.ru
epm tool estrlist epm tool estrlist union a b a c
EOF EOF
;; ;;
"eget") "eget") # HELPCMD: downloading tool (simular to wget or curl)
showcmd eget "$@" showcmd eget "$@"
eget "$@" eget "$@"
;; ;;
"estrlist") "estrlist") # HELPCMD: string operations
showcmd estrlist "$@" showcmd estrlist "$@"
estrlist "$@" estrlist "$@"
;; ;;
"json") "json") # HELPCMD: json operations
showcmd json "$@" showcmd json "$@"
$SHAREDIR/tools_json "$@" $SHAREDIR/tools_json "$@"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment