cli: enforce argument to upgrade command
[oweals/opkg-lede.git] / src / opkg-cl.c
index 5b72050ee445e0f3f462a895c9ad9fed1ccfd2e6..c4e4492b3a7e98518a2577756f7aeecc843ba688 100644 (file)
@@ -28,6 +28,7 @@
 #include "opkg_cmd.h"
 #include "file_util.h"
 #include "opkg_message.h"
+#include "opkg_download.h"
 #include "../libbb/libbb.h"
 
 enum {
@@ -220,7 +221,7 @@ usage()
 
        printf("\nPackage Manipulation:\n");
        printf("\tupdate                        Update list of available packages\n");
-       printf("\tupgrade                       Upgrade installed packages\n");
+       printf("\tupgrade <pkgs>                Upgrade packages\n");
        printf("\tinstall <pkgs>                Install package(s)\n");
        printf("\tconfigure <pkgs>      Configure unpacked package(s)\n");
        printf("\tremove <pkgs|regexp>  Remove package(s)\n");
@@ -240,8 +241,11 @@ usage()
        printf("\tcompare-versions <v1> <op> <v2>\n");
        printf("\t                    compare versions using <= < > >= = << >>\n");
        printf("\tprint-architecture    List installable package architectures\n");
+       printf("\tdepends [-A] [pkgname|pat]+\n");
        printf("\twhatdepends [-A] [pkgname|pat]+\n");
        printf("\twhatdependsrec [-A] [pkgname|pat]+\n");
+       printf("\twhatrecommends[-A] [pkgname|pat]+\n");
+       printf("\twhatsuggests[-A] [pkgname|pat]+\n");
        printf("\twhatprovides [-A] [pkgname|pat]+\n");
        printf("\twhatconflicts [-A] [pkgname|pat]+\n");
        printf("\twhatreplaces [-A] [pkgname|pat]+\n");