Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
[oweals/busybox.git] / free.c
diff --git a/free.c b/free.c
index 39594dbe527422c47ad906717fde3b505e668013..e6f130ea9891cdebb5227fee4da9fd2eab02926c 100644 (file)
--- a/free.c
+++ b/free.c
@@ -37,6 +37,14 @@ extern int free_main(int argc, char **argv)
        info.sharedram/=DIVISOR;
        info.bufferram/=DIVISOR;
 
+       if (argc > 1 && **(argv + 1) == '-') {
+               usage("free\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+                               "\nDisplays the amount of free and used system memory\n"
+#endif
+                               );
+       }
+
 
        printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free", 
                        "shared", "buffers");