Lines Matching refs:argv
297 static std::unique_ptr<ParsedArgs> ParseArgs(int argc, char **argv) { in ParseArgs() argument
311 int c = getopt_long(argc, argv, "x:s:c:f:v::li:", long_opts, &index); in ParseArgs()
320 fprintf(stderr, "%s: Invalid command '%s'\n", argv[0], optarg); in ParseArgs()
326 if (!ParseSensorArg(args->sensors, optarg, argv[0])) { in ParseArgs()
335 argv[0], args->count); in ParseArgs()
364 fprintf(stderr, "%s: Invalid device index %d\n", argv[0], in ParseArgs()
375 if (!ValidateArgs(args, argv[0])) { in ParseArgs()
413 int main(int argc, char **argv) { in main() argument
418 PrintUsage(argv[0]); in main()
422 std::unique_ptr<ParsedArgs> args = ParseArgs(argc, argv); in main()
424 PrintUsage(argv[0]); in main()