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.c201 if (!argv[1]) help_exit(0); in get_next_params()
211 if (addr_mask) help_exit("dup netmask"); in get_next_params()
221 } else help_exit("dup gw"); in get_next_params()
234 else help_exit("no '%s'", *argv); in get_next_params()
266 if (!action || !*argv) help_exit("setroute"); in setroute()
269 if (!*argv) help_exit("setroute"); in setroute()
329 if (!argv[1]) help_exit(0); in get_next_params_inet6()
340 } else help_exit(0); in get_next_params_inet6()
343 } else help_exit(0); in get_next_params_inet6()
357 if (!action || !*argv) help_exit(0); in setroute_inet6()
[all …]
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()
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.c565 if ((idx = substring_to_idx(*argv++, vlan_optlist)) == -1) help_exit(0); in vlan_parse_opt()
568 if (!*argv) help_exit(0); in vlan_parse_opt()
574 if ((idx = substring_to_idx(*argv, vlan_protolist)) == -1) help_exit(0); in vlan_parse_opt()
582 if ((param = substring_to_idx(*argv, on_off)) == -1) help_exit(0); in vlan_parse_opt()
696 if ((idx = substring_to_idx(*argv++, cmd_objectlist)) == -1) help_exit(0); in link_set()
705 if (!*argv) help_exit(0); in link_set()
716 } else help_exit(0); in link_set()
988 help_exit(0); in iplink()
1479 help_exit(0); in ipaddr()
2866 if (!*++optargv) help_exit(0); in ip_main()
[all …]
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()
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()
/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()
Dcat.c95 if (!*toys.optargs) help_exit("missing argument"); in cat_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.c91 if (!toys.optc && !FLAG(f)) help_exit("Needs 1 argument"); in rm_main()
Dkill.c140 if (!*args) help_exit("missing argument");
/third_party/toybox/porting/liteos_a/toys/lsb/
Dumount.c83 help_exit("Need 1 arg or -a"); in umount_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/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/toys/lsb/
Dkillall.c94 if (!toys.optc) help_exit("no name"); in killall_main()

12