blob: e94f26c938a7bfc11c115fad9e85dfaf0827fb6c [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];
Denys Vlasenkoa0fd4a72012-09-02 14:29:14 +020017 return APPLET_main(argc, argv);
Rob Landleycb376ee2006-08-04 21:05:33 +000018}
19
20void bb_show_usage(void)
21{
Ron Yorstoncad3fc72021-02-03 20:47:14 +010022 fputs_stdout(APPLET_full_usage "\n");
Bernhard Reutner-Fischer636a1f82008-05-19 09:29:47 +000023 exit(EXIT_FAILURE);
Rob Landleycb376ee2006-08-04 21:05:33 +000024}