From 58ba8bd944c672022bd07ab4d33884251b8dfe7a Mon Sep 17 00:00:00 2001 From: Max mal Richtig Date: Tue, 19 Nov 2024 13:19:26 +0100 Subject: [PATCH] Extend APTMAN help message --- aptman | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/aptman b/aptman index ee7d5f1..e6550af 100644 --- a/aptman +++ b/aptman @@ -16,7 +16,6 @@ fi PREFIX="" target_env="$MSYSTEM" -cmd="" if [ "$1" == "-t" ] then @@ -52,8 +51,10 @@ then ;; esac else - if [ "$MSYSTEM" != "MSYS" ] + if [ "$MSYSTEM" == "MSYS" ] then + PREFIX="" + else PREFIX="$MINGW_PACKAGE_PREFIX""-" fi fi @@ -135,18 +136,22 @@ case "$cmd" in ;; *) # else - echo "Usage: aptman [...]" - echo "---------------------------------------" - echo "update - Update packages" - echo "upgrade - Install upgrades" - echo "upgradeable - List upgradeable packages" - echo "install | reinstall - (re)Install packages" - echo "remove - Uninstall package" - echo "autoremove - Uninstalling orphaned packages" - echo "purge - Uninstall package, dependencies and clean config" - echo "check - Check for broken dependencies" - echo "search - Search package" - echo "show - Show package info" - echo "clean | cleaner - Clean up pacman cache" + echo "USAGE: aptman ([OPTION]) [COMMAND]" + echo "-------------------------------------------------------------------------------" + echo "OPTIONS:" + echo " -t [ENVIRONMENT] : Use target MSYS environment" + echo "-------------------------------------------------------------------------------" + echo "COMMANDS:" + echo " update - Update package index" + echo " upgrade - Install upgrades" + echo " upgradeable - List upgradeable packages" + echo " install | reinstall [PKG] - (re)Install packages" + echo " remove [PKG] - Uninstall package" + echo " autoremove - Uninstalling orphaned packages" + echo " purge [PKG] - Uninstall package, dependencies and clean config" + echo " check - Check for broken dependencies" + echo " search [PKG] - Search package" + echo " show [PKG] - Show package info" + echo " clean | cleaner - Clean up pacman cache" ;; esac