Lines Matching refs:argc
25 static int (*last_do_help)(int argc, char **argv);
52 static int do_help(int argc, char **argv) in do_help() argument
73 static int do_batch(int argc, char **argv);
74 static int do_version(int argc, char **argv);
114 static int do_version(int argc, char **argv) in do_version() argument
187 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
188 int (*help)(int argc, char **argv)) in cmd_select() argument
192 last_argc = argc; in cmd_select()
196 if (argc < 1 && cmds[0].func) in cmd_select()
197 return cmds[0].func(argc, argv); in cmd_select()
206 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
210 help(argc - 1, argv + 1); in cmd_select()
323 static int do_batch(int argc, char **argv) in do_batch() argument
334 if (argc < 2) { in do_batch()
337 } else if (argc > 2) { in do_batch()
438 int main(int argc, char **argv) in main() argument
476 while ((opt = getopt_long(argc, argv, "VhpjfLmndB:l", in main()
483 return do_help(argc, argv); in main()
531 argc -= optind; in main()
533 if (argc < 0) in main()
537 return do_version(argc, argv); in main()
539 ret = cmd_select(commands, argc, argv, do_help); in main()