Home
last modified time | relevance | path

Searched refs:help_exit (Results 1 – 25 of 32) 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()
265 if (!action || !*argv) help_exit("setroute"); in setroute()
268 if (!*argv) help_exit("setroute"); in setroute()
328 if (!argv[1]) help_exit(0); in get_next_params_inet6()
339 } else help_exit(0); in get_next_params_inet6()
342 } else help_exit(0); in get_next_params_inet6()
356 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()
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 …]
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()
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()
/external/toybox/lib/
Dargs.c142 help_exit("Unknown option %s", gof->arg); in gotflag()
169 if (bad) help_exit("No '%c' with '%c'", opt->c, bad->c); in gotflag()
193 if (opt->c != -1) help_exit("%s-%c", s, opt->c); in gotflag()
196 help_exit("%s--%.*s", s, lo->len, lo->str); in gotflag()
210 if (l < opt->val[0].l) help_exit("-%c < %ld", opt->c, opt->val[0].l); in gotflag()
211 if (l > opt->val[1].l) help_exit("-%c > %ld", opt->c, opt->val[1].l); in gotflag()
219 help_exit("-%c < %lf", opt->c, (double)opt->val[0].f); in gotflag()
221 help_exit("-%c > %lf", opt->c, (double)opt->val[1].f); in gotflag()
485 help_exit("Need%s %d argument%s", letters[!!(gof.minargs-1)], in get_optflags()
488 help_exit("Max %d argument%s", gof.maxargs, letters[!(gof.maxargs-1)]); in get_optflags()
[all …]
/external/toybox/toys/other/
Dchrt.c84 if (!*toys.optargs) help_exit("no PRIORITY"); in chrt_main()
86 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.c47 if (!toys.optflags) help_exit("need --option");
Di2ctools.c289 if (strlen(mode) != 1) help_exit("mode too long"); in i2cset_main()
303 help_exit("syntax error"); in i2cset_main()
Dsysctl.c152 if (!*toys.optargs) help_exit("Needs 1 arg"); in sysctl_main()
Dlosetup.c178 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/posix/
Dgetconf.c224 if (toys.optc<1) help_exit(0); in getconf_main()
240 if (toys.optc!=2) help_exit("%s needs a path", name); in getconf_main()
241 } else if (toys.optc!=1) help_exit("%s does not take a path", name); in getconf_main()
Dkill.c138 if (!*args) help_exit("missing argument");
/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.c438 if (!sock->sa_family || !argv[1]) help_exit("bad hw '%s'", *argv); in ifconfig_main()
479 if (!argv[1]) help_exit("%s", *argv); in ifconfig_main()
546 if (i == ARRAY_LEN(try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
Dnetcat.c89 help_exit("bad argument count"); in netcat_main()
/external/autotest/client/cros/nfc/
Dconsole.py657 def help_exit(self): member in NfcConsole
662 help_EOF = help_exit
/external/toybox/
Dmain.c135 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()

12