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 @@
epm_db_help()
{
message '
epm db - package database operations
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
'
message "epm db - package database operations"
get_help HELPCMD $SHAREDIR/epm-db
}
__epm_check_lock()
......@@ -86,14 +79,14 @@ epm_db()
shift
case "$cmd" in
-h|--help|help|"")
-h|--help|help|"") # HELPCMD: print this help
epm_db_help
;;
check|fix)
fix) # HELPCMD: fix the package database
load_helper epm-check
epm_check "$@"
;;
locked|--locked)
locked) # HELPCMD: check if the package database is 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