Home
last modified time | relevance | path

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

12

/external/toybox/toys/pending/
Droute.c192 if (!argv[1]) help_exit(0); in get_next_params()
202 if (addr_mask) help_exit("dup netmask"); in get_next_params()
216 } else help_exit("dup gw"); in get_next_params()
229 else help_exit("no '%s'", *argv); in get_next_params()
260 if (!action || !*argv) help_exit("setroute"); in setroute()
263 if (!*argv) help_exit("setroute"); in setroute()
316 if (!argv[1]) help_exit(0); in get_next_params_inet6()
327 } else help_exit(0); in get_next_params_inet6()
330 } else help_exit(0); in get_next_params_inet6()
343 if (!action || !*argv) help_exit(0); in setroute_inet6()
[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.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()
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()
Ddd.c300 if (!*arg) help_exit(0); in dd_main()
Dipcs.c428 else help_exit(0); in ipcs_main()
Dmodprobe.c498 help_exit("bad syntax"); in modprobe_main()
Dfdisk.c156 help_exit("bad sector size"); in read_sec_sz()
1489 if (toys.optc != 1) help_exit(stdout); in fdisk_main()
/external/toybox/lib/
Dargs.c139 help_exit("Unknown option %s", gof->arg); in gotflag()
166 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()
477 help_exit("Need%s %d argument%s", letters[!!(gof.minargs-1)], in get_optflags()
480 help_exit("Max %d argument%s", gof.maxargs, letters[!(gof.maxargs-1)]); in get_optflags()
[all …]
Dlib.h158 void help_exit(char *msg, ...) printf_format noreturn;
/external/toybox/toys/other/
Dlsattr.c205 help_exit("bad '%c'", ch); in get_flag_val()
225 if (!arg) help_exit("bad -v"); in parse_cmdline_arg()
305 if (!*argv) help_exit("no file"); in chattr_main()
Dblockdev.c46 if (!toys.optflags) help_exit("need --option");
Difconfig.c406 if (!sock->sa_family || !argv[1]) help_exit("bad hw '%s'", *argv); in ifconfig_main()
447 if (!argv[1]) help_exit("%s", *argv); in ifconfig_main()
514 if (i == sizeof(try)/sizeof(*try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
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()
Dnetcat.c106 help_exit("Argument count wrong"); in netcat_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/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.c117 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()

12