<commit_before>module Lavender
  class Command
    def self.run args
      case args.first
      when 'compile'
        static = Lavender::Static.new
        static.run
      when 'server'
        raise ArgumentError, "Not yet implemented"
      else
        raise ArgumentError, "Command not recognised"
      end
    end
  end
end
<commit_msg>Add help text.<commit_after>module Lavender
  class Command
    def self.run args
      case args.first
      when 'help'
        self.help
      when nil
        self.help

      when 'compile'
        static = Lavender::Static.new
        static.run
      when 'server'
        raise ArgumentError, "Not yet implemented"

      else
        raise ArgumentError, "Command not recognised"
      end
    end

    def self.help
      puts <<END
Usage: lavender command

Commands:
  help      This message
  compile   Compiles the project in the current working directory
END
    end
  end
end

{'fraction_non_alphanumeric': 0.053418803418803416, 'fraction_numerical': 0.0, 'mean_word_length': 2.003205128205128, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7213049', 'n_tokens_mistral': 255, 'n_tokens_neox': 253, 'n_words': 92}