#include "args.h" #include #include namespace kurator { Args parse_args(int argc, char* argv[]) { Args args {}; int opt; while (-1 != (opt = getopt(argc, argv, "s:l"))) { switch (opt) { case 's': args.scene = optarg; break; case 'l': args.show_scenes = true; break; default: break; // Ignore any problems and proceed with what you can parse properly. } } return args; } } // namespace kurator