+
+ /* treat amrecover-specific command line options as the equivalent
+ * -o command-line options to set configuration values */
+ cfg_ovr = new_config_overwrites(argc/2);
+
+ /* If the first argument is not an option flag, then we assume
+ * it is a configuration name to match the syntax of the other
+ * Amanda utilities. */
+ if (argc > 1 && argv[1][0] != '-') {
+ add_config_overwrite(cfg_ovr, "conf", argv[1]);
+
+ /* remove that option from the command line */
+ argv[1] = argv[0];
+ argv++; argc--;
+ }
+
+ /* now parse regular command-line '-' options */
+ while ((i = getopt(argc, argv, "o:C:s:t:d:U")) != EOF) {