Commit d48b23ca authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm db: use HELPCMD for help, remove check command

parent b56002d2
...@@ -19,15 +19,8 @@ ...@@ -19,15 +19,8 @@
epm_db_help() epm_db_help()
{ {
message ' message "epm db - package database operations"
epm db - package database operations get_help HELPCMD $SHAREDIR/epm-db
Usage: epm db [command]
Commands:
check check the package database for errors
fix fix the package database (runs check and repair)
locked check if the package database is locked
'
} }
__epm_check_lock() __epm_check_lock()
...@@ -86,14 +79,14 @@ epm_db() ...@@ -86,14 +79,14 @@ epm_db()
shift shift
case "$cmd" in case "$cmd" in
-h|--help|help|"") -h|--help|help|"") # HELPCMD: print this help
epm_db_help epm_db_help
;; ;;
check|fix) fix) # HELPCMD: fix the package database
load_helper epm-check load_helper epm-check
epm_check "$@" epm_check "$@"
;; ;;
locked|--locked) locked) # HELPCMD: check if the package database is locked
epm_db_locked epm_db_locked
;; ;;
*) *)
......
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