Home
last modified time | relevance | path

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

12

/external/toybox/lib/
Dargs.c142 help_exit("Unknown option '%s'", gof->arg); in gotflag()
167 if (bad) help_exit("No '%c' with '%c'", opt->c, bad->c); in gotflag()
192 if (opt->c != -1) help_exit("%s-%c", s, opt->c); in gotflag()
195 help_exit("%s--%.*s", s, lo->len, lo->str); in gotflag()
209 if (l < opt->val[0].l) help_exit("-%c < %ld", opt->c, opt->val[0].l); in gotflag()
210 if (l > opt->val[1].l) help_exit("-%c > %ld", opt->c, opt->val[1].l); in gotflag()
218 help_exit("-%c < %lf", opt->c, (double)opt->val[0].f); in gotflag()
220 help_exit("-%c > %lf", opt->c, (double)opt->val[1].f); in gotflag()
486 help_exit("Need%s %d argument%s", letters[!!(gof.minargs-1)], in get_optflags()
489 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()
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()
Dlsattr.c251 help_exit("bad '%c'", ch); in get_flag_val()
353 if (!*argv) help_exit("no file"); in chattr_main()
Drtcwake.c92 } else help_exit("-m %s needs -s or -t", TT.m); in rtcwake_main()
Dsysctl.c152 if (!*toys.optargs) help_exit("Needs 1 arg"); in sysctl_main()
/external/autotest/client/cros/cellular/pseudomodem/
Dclient.py275 def help_exit(self): member in PseudoModemClient
282 help_EOF = help_exit
/external/toybox/toys/posix/
Dgetconf.c219 if (toys.optc<1) help_exit(0); in getconf_main()
235 if (toys.optc!=2) help_exit("%s needs a path", name); in getconf_main()
236 } else if (toys.optc!=1) help_exit("%s does not take a path", name); in getconf_main()
Dln.c40 if (FLAG(T) && toys.optc>1) help_exit("Max 2 arguments");
Drm.c95 if (!toys.optc && !FLAG(f)) help_exit("Needs 1 argument"); in rm_main()
Dkill.c143 if (!*args) help_exit("missing argument");
Ddate.c143 if (i<0) help_exit("bad -I: %s", TT.I); in date_main()
/external/toybox/toys/pending/
Dwget.c173 if (!(toys.optflags & FLAG_O)) help_exit("no filename"); in wget_main()
176 if(!toys.optargs[0]) help_exit("no URL"); in wget_main()
Droute.c262 if (!action || !*argv) help_exit("setroute"); in setroute()
264 if (!*argv) help_exit("setroute"); in setroute()
349 } else help_exit("no '%s'", *argv); in setroute()
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()
Dcrontab.c353 help_exit("file name must be specified for replace"); in crontab_main()
360 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.c566 if ((idx = substring_to_idx(*argv++, vlan_optlist)) == -1) help_exit(0); in vlan_parse_opt()
569 if (!*argv) help_exit(0); in vlan_parse_opt()
575 if ((idx = substring_to_idx(*argv, vlan_protolist)) == -1) help_exit(0); in vlan_parse_opt()
583 if ((param = substring_to_idx(*argv, on_off)) == -1) help_exit(0); in vlan_parse_opt()
697 if ((idx = substring_to_idx(*argv++, cmd_objectlist)) == -1) help_exit(0); in link_set()
706 if (!*argv) help_exit(0); in link_set()
717 } else help_exit(0); in link_set()
989 help_exit(0); in iplink()
1480 help_exit(0); in ipaddr()
2861 if (!*++optargv) help_exit(0); in ip_main()
[all …]
Duseradd.c49 if (toys.optflags) help_exit("options with USER GROUP");
/external/toybox/
Dmain.c67 help_exit("Unknown command %s", name); in unknown()
134 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
/external/toybox/toys/lsb/
Dkillall.c94 if (!toys.optc) help_exit("no name"); in killall_main()
/external/toybox/toys/net/
Difconfig.c439 if (!sock->sa_family || !argv[1]) help_exit("bad hw '%s'", *argv); in ifconfig_main()
480 if (!argv[1]) help_exit("%s", *argv); in ifconfig_main()
547 if (i == ARRAY_LEN(try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
Dnetcat.c111 help_exit("bad argument count"); in netcat_main()

12