cli: default to /etc/opkg.conf
[oweals/opkg-lede.git] / src / opkg-cl.c
index 5b72050ee445e0f3f462a895c9ad9fed1ccfd2e6..687bb9e84581cdf859c8a6bd537611f091af0303 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 {
@@ -206,6 +207,9 @@ args_parse(int argc, char *argv[])
                }
        }
 
+       if(!conf->conf_file && !conf->offline_root)
+               conf->conf_file = xstrdup("/etc/opkg.conf");
+
        if (parse_err)
                return parse_err;
        else
@@ -220,7 +224,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 +244,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");