blob: 414a11b05c940dc4c2a461ee018d2dea5cbb5ab4 [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 *
Rob Landleye9a7a622006-09-22 02:52:41 +00005 * Licensed under GPL version 2, see file LICENSE in this tarball for details
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
18 return APPLET_main(argc,argv);
19}
20
21void bb_show_usage(void)
22{
23 printf(APPLET_full_usage "\n");
24
Bernhard Reutner-Fischer636a1f82008-05-19 09:29:47 +000025 exit(EXIT_FAILURE);
Rob Landleycb376ee2006-08-04 21:05:33 +000026}