Home
last modified time | relevance | path

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

12

/third_party/toybox/toys/pending/
Droute.c199 if (!argv[1]) help_exit(0); in get_next_params()
209 if (addr_mask) help_exit("dup netmask"); in get_next_params()
219 } else help_exit("dup gw"); in get_next_params()
232 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()
355 if (!action || !*argv) help_exit(0); in setroute_inet6()
[all …]
Dip.c567 if ((idx = substring_to_idx(*argv++, vlan_optlist)) == -1) help_exit(0); in vlan_parse_opt()
570 if (!*argv) help_exit(0); in vlan_parse_opt()
576 if ((idx = substring_to_idx(*argv, vlan_protolist)) == -1) help_exit(0); in vlan_parse_opt()
584 if ((param = substring_to_idx(*argv, on_off)) == -1) help_exit(0); in vlan_parse_opt()
698 if ((idx = substring_to_idx(*argv++, cmd_objectlist)) == -1) help_exit(0); in link_set()
707 if (!*argv) help_exit(0); in link_set()
718 } else help_exit(0); in link_set()
990 help_exit(0); in iplink()
1481 help_exit(0); in ipaddr()
2862 if (!*++optargv) help_exit(0); in ip_main()
[all …]
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()
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()
Dipcrm.c86 if (toys.optc) help_exit("unknown argument: %s", *toys.optargs); in ipcrm_main()
Dgroupadd.c66 help_exit("options, user and group can't be together"); in groupadd_main()
Duseradd.c49 if (toys.optflags) help_exit("options with USER GROUP");
/third_party/toybox/lib/
Dargs.c140 help_exit("Unknown option '%s'", gof->arg); in gotflag()
167 if (bad) help_exit("No '%c' with '%c'", opt->c, bad->c); in gotflag()
191 if (opt->c != -1) help_exit("%s-%c", s, opt->c); in gotflag()
194 help_exit("%s--%.*s", s, lo->len, lo->str); in gotflag()
208 if (l < opt->val[0].l) help_exit("-%c < %ld", opt->c, opt->val[0].l); in gotflag()
209 if (l > opt->val[1].l) help_exit("-%c > %ld", opt->c, opt->val[1].l); in gotflag()
217 help_exit("-%c < %lf", opt->c, (double)opt->val[0].f); in gotflag()
219 help_exit("-%c > %lf", opt->c, (double)opt->val[1].f); in gotflag()
483 help_exit("Need%s %d argument%s", letters[!!(gof.minargs-1)], in get_optflags()
486 help_exit("Max %d argument%s", gof.maxargs, letters[!(gof.maxargs-1)]); in get_optflags()
[all …]
/third_party/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()
306 if (!*argv) help_exit("no file"); in chattr_main()
Di2ctools.c198 if (toys.optc!=1 && toys.optc!=3) help_exit("Needs 1 or 3 arguments"); in i2cdetect_main()
296 if (strlen(mode)!=1) help_exit("mode too long"); in i2cset_main()
309 } else help_exit("syntax error"); in i2cset_main()
Dblockdev.c47 if (!toys.optflags) help_exit("need --option");
Dsysctl.c152 if (!*toys.optargs) help_exit("Needs 1 arg"); in sysctl_main()
Dlosetup.c190 help_exit("needs %d arg%s", 1+!!file, file ? "s" : ""); in losetup_main()
/third_party/toybox/porting/liteos_a/toys/posix/
Ddu.c140 if (toys.optc < 1) help_exit(0); in du_main()
143 help_exit("Directory size statistics are not supported"); in du_main()
Dkill.c139 if (!*args) help_exit("missing argument");
Drm.c141 if (!toys.optc && !FLAG(f)) help_exit("Needs 1 argument"); in rm_main()
/third_party/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.c45 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");
/third_party/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()
/third_party/toybox/porting/liteos_a/toys/net/
Difconfig.c452 if (!sock->sa_family || !argv[1]) help_exit("bad hw '%s'", *argv); in ifconfig_main()
493 if (!argv[1]) help_exit("%s", *argv); in ifconfig_main()
560 if (i == ARRAY_LEN(try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
/third_party/toybox/porting/liteos_a/toys/lsb/
Dumount.c83 help_exit("Need 1 arg or -a"); in umount_main()
/third_party/toybox/toys/lsb/
Dkillall.c94 if (!toys.optc) help_exit("no name"); in killall_main()

12