src/Pure/System/options.scala
changeset 55618 995162143ef4
parent 54347 d5589530f3ba
child 56465 6ad693903e22
equal deleted inserted replaced
55617:2c585bb9560c 55618:995162143ef4
   138       args.toList match {
   138       args.toList match {
   139         case get_option :: export_file :: more_options =>
   139         case get_option :: export_file :: more_options =>
   140           val options = (Options.init() /: more_options)(_ + _)
   140           val options = (Options.init() /: more_options)(_ + _)
   141 
   141 
   142           if (get_option != "")
   142           if (get_option != "")
   143             java.lang.System.out.println(options.check_name(get_option).value)
   143             System.out.println(options.check_name(get_option).value)
   144 
   144 
   145           if (export_file != "")
   145           if (export_file != "")
   146             File.write(Path.explode(export_file), YXML.string_of_body(options.encode))
   146             File.write(Path.explode(export_file), YXML.string_of_body(options.encode))
   147 
   147 
   148           if (get_option == "" && export_file == "")
   148           if (get_option == "" && export_file == "")
   149             java.lang.System.out.println(options.print)
   149             System.out.println(options.print)
   150 
   150 
   151           0
   151           0
   152         case _ => error("Bad arguments:\n" + cat_lines(args))
   152         case _ => error("Bad arguments:\n" + cat_lines(args))
   153       }
   153       }
   154     }
   154     }