blob: 1e74e4ce58d5509aee2c53e3cb8b63d09c15209f [file] [log] [blame]
Rob Landleycb376ee2006-08-04 21:05:33 +00001/* Minimal wrapper to build an individual busybox applet.
2 *
3 * Copyright 2005 Rob Landley <rob@landley.net
Denis Vlasenko9213a9e2006-09-17 16:28:10 +00004 *
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02005 * Licensed under GPLv2, see file LICENSE in this source tree.
Rob Landleycb376ee2006-08-04 21:05:33 +00006 */
7
Denis Vlasenko8f8f2682006-10-03 21:00:43 +00008const char *applet_name;
Rob Landleycb376ee2006-08-04 21:05:33 +00009
10#include <stdio.h>
11#include <stdlib.h>
Rob Landleycb376ee2006-08-04 21:05:33 +000012#include "usage.h"
13
Bernhard Reutner-Fischerfebe3c42007-04-04 20:52:03 +000014int main(int argc, char **argv)
Rob Landleycb376ee2006-08-04 21:05:33 +000015{
Denis Vlasenko9067f132007-03-24 12:11:17 +000016 applet_name = argv[0];
Rob Landleycb376ee2006-08-04 21:05:33 +000017 return APPLET_main(argc,argv);
18}
19
20void bb_show_usage(void)
21{
Denis Vlasenkoe0a7fc52008-07-02 11:14:59 +000022 fputs(APPLET_full_usage "\n", stdout);
Bernhard Reutner-Fischer636a1f82008-05-19 09:29:47 +000023 exit(EXIT_FAILURE);
Rob Landleycb376ee2006-08-04 21:05:33 +000024}