Lines Matching refs:argc
470 main (int argc, char *argv[]) in main() argument
482 if (argc > 1 && strcmp (argv[1], "--version") == 0) in main()
494 if (argc > 1 && strcmp (argv[1], "--help") == 0) in main()
509 if (argc > 1 && strncmp (argv[1], "-v", 2) == 0) in main()
513 if (argc < 3) in main()
517 argc -= 2; in main()
522 argc -= 1; in main()
532 if (argc > 1 && strncmp (argv[1], "-v", 2) == 0) in main()
536 if (argc < 3) in main()
541 argc -= 2; in main()
547 argc -= 1; in main()
613 const char *args[argc + 3]; in main()
622 memcpy (&args[3], &argv[1], argc * sizeof (argv[1])); in main()
632 if (argc > 1 && strcmp (argv[1], "-a") == 0) in main()
634 if (argc == 2) in main()
636 else if (argc == 3) in main()
643 if (argc > ai && strcmp (argv[ai], "--") == 0) in main()
646 if (argc - ai < 1 || argc - ai > 2) in main()
660 if (argc - ai < 2) in main()
676 if (argc - ai > 1) in main()
692 if (argc - ai > 1) in main()