Home
last modified time | relevance | path

Searched refs:help_exit (Results 1 – 25 of 30) sorted by relevance

12

/external/toybox/toys/pending/
Droute.c200 if (!argv[1]) help_exit(0); in get_next_params()
210 if (addr_mask) help_exit("dup netmask"); in get_next_params()
220 } else help_exit("dup gw"); in get_next_params()
233 else help_exit("no '%s'", *argv); in get_next_params()
264 if (!action || !*argv) help_exit("setroute"); in setroute()
267 if (!*argv) help_exit("setroute"); in setroute()
327 if (!argv[1]) help_exit(0); in get_next_params_inet6()
338 } else help_exit(0); in get_next_params_inet6()
341 } else help_exit(0); in get_next_params_inet6()
354 if (!action || !*argv) help_exit(0); in setroute_inet6()
[all …]
Dwget.c137 if (!(toys.optflags & FLAG_f)) help_exit("no filename"); in wget_main()
140 if(!toys.optargs[0]) help_exit("no URL"); in wget_main()
Dcrontab.c350 help_exit("file name must be specified for replace"); in crontab_main()
357 if (FLAG_elr) help_exit("no arguments permitted after this option"); in crontab_main()
Dbrctl.c323 if (toys.optc < t->nargs) help_exit("check args"); in brctl_main()
330 if (i == ARRAY_LEN(cc)) help_exit("invalid option '%s'", *toys.optargs); in brctl_main()
Dgroupadd.c66 help_exit("options, user and group can't be together"); in groupadd_main()
Dipcrm.c86 if (toys.optc) help_exit("unknown argument: %s", *toys.optargs); in ipcrm_main()
Dip.c516 if ((idx = substring_to_idx(*argv++, vlan_optlist)) == -1) help_exit(0); in vlan_parse_opt()
519 if (!*argv) help_exit(0); in vlan_parse_opt()
525 if ((idx = substring_to_idx(*argv, vlan_protolist)) == -1) help_exit(0); in vlan_parse_opt()
533 if ((param = substring_to_idx(*argv, on_off)) == -1) help_exit(0); in vlan_parse_opt()
647 if ((idx = substring_to_idx(*argv++, cmd_objectlist)) == -1) help_exit(0); in link_set()
656 if (!*argv) help_exit(0); in link_set()
667 } else help_exit(0); in link_set()
939 help_exit(0); in iplink()
1430 help_exit(0); in ipaddr()
2756 if (!*++optargv) help_exit(0); in ip_main()
[all …]
Duseradd.c49 if (toys.optflags) help_exit("options with USER GROUP");
Dtftpd.c245 if (getsockname(0, (struct sockaddr *)&srcaddr, &socklen)) help_exit(0); in tftpd_main()
Dipcs.c428 else help_exit(0); in ipcs_main()
Dmodprobe.c509 help_exit("bad syntax"); in modprobe_main()
/external/toybox/lib/
Dargs.c139 help_exit("Unknown option %s", gof->arg); in gotflag()
166 if (bad) help_exit("No '%c' with '%c'", opt->c, bad->c); in gotflag()
190 if (opt->c != -1) help_exit("%s-%c", s, opt->c); in gotflag()
193 help_exit("%s--%.*s", s, lo->len, lo->str); in gotflag()
207 if (l < opt->val[0].l) help_exit("-%c < %ld", opt->c, opt->val[0].l); in gotflag()
208 if (l > opt->val[1].l) help_exit("-%c > %ld", opt->c, opt->val[1].l); in gotflag()
216 help_exit("-%c < %lf", opt->c, (double)opt->val[0].f); in gotflag()
218 help_exit("-%c > %lf", opt->c, (double)opt->val[1].f); in gotflag()
478 help_exit("Need%s %d argument%s", letters[!!(gof.minargs-1)], in get_optflags()
481 help_exit("Max %d argument%s", gof.maxargs, letters[!(gof.maxargs-1)]); in get_optflags()
[all …]
Dlib.h183 void help_exit(char *msg, ...) printf_format noreturn;
/external/toybox/toys/other/
Dchrt.c67 if (!*toys.optargs) help_exit("no PRIORITY"); in chrt_main()
69 help_exit("need 1 of -p or COMMAND"); in chrt_main()
Dlsattr.c208 help_exit("bad '%c'", ch); in get_flag_val()
228 if (!arg) help_exit("bad -v"); in parse_cmdline_arg()
308 if (!*argv) help_exit("no file"); in chattr_main()
Dblockdev.c46 if (!toys.optflags) help_exit("need --option");
Dsysctl.c152 if (!*toys.optargs) help_exit(0); in sysctl_main()
Dlosetup.c184 help_exit("needs %d arg%s", 1+!!file, file ? "s" : ""); in losetup_main()
/external/autotest/client/cros/cellular/pseudomodem/
Dclient.py269 def help_exit(self): member in PseudoModemClient
276 help_EOF = help_exit
/external/toybox/toys/lsb/
Dkillall.c86 if (!(toys.optflags & FLAG_l) && !toys.optc) help_exit("no name"); in killall_main()
/external/toybox/toys/net/
Difconfig.c409 if (!sock->sa_family || !argv[1]) help_exit("bad hw '%s'", *argv); in ifconfig_main()
450 if (!argv[1]) help_exit("%s", *argv); in ifconfig_main()
517 if (i == sizeof(try)/sizeof(*try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
Dnetcat.c103 help_exit("bad argument count"); in netcat_main()
/external/toybox/toys/posix/
Dkill.c139 if (!*args) help_exit("missing argument");
/external/autotest/client/cros/nfc/
Dconsole.py657 def help_exit(self): member in NfcConsole
662 help_EOF = help_exit
/external/toybox/
Dmain.c132 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()

12