Skip to content
  1. Nov 21, 2013
    • Rene Saarsoo's avatar
      Separate parsing and processing of options. · 3bb02624
      Rene Saarsoo authored
      Rename Options::Parser to Options::HelpfulParser - this is the class
      that works like Ruby built-in OptionParser, but with improved --help
      system.
      
      Use Options::Parser as a name for the class that constructs the
      OptionParser object and performs parsing with it, returning
      Options::Record object.  While doing so, it tries to do little more than
      setting of attributes on Options::Record - it handles converting
      filenames to canonical form; reading file contents for --head-html,
      --body-html and --css; reading and interpreting the --config JSON
      file (and also auto-detection of the latter).
      
      Options::Processor takes care of the rest: expanding filenames,
      rendering the footer, configuring various classes, and validating
      the options.
      3bb02624
    • Rene Saarsoo's avatar
      Move defaults also to options processing section. · 549fd723
      Rene Saarsoo authored
      So related things sit closer together.
      549fd723
    • Rene Saarsoo's avatar
      Move all options classes to options/ dir. · 0dc79364
      Rene Saarsoo authored
      0dc79364
    • Rene Saarsoo's avatar
      Store opts in OptionsRecord before applying them. · 528a8016
      Rene Saarsoo authored
      For example previously the --encoding option triggered immediate
      setting of Util::IO.encoding attribute.  Now we store it to @opts
      object initially and then afterwards inspect this object to apply
      the real effects of the options.
      
      Similarly with several other options.
      528a8016
  2. Nov 20, 2013
  3. Nov 18, 2013
  4. Nov 15, 2013
  5. Nov 14, 2013
  6. Nov 04, 2013
  7. Oct 31, 2013
Loading