<commit_before>
{-# OPTIONS_HADDOCK hide, prune #-}

{-|
Module      : Qux.Commands

Copyright   : (c) <NAME>, 2015
License     : BSD3
Maintainer  : <EMAIL>
-}

module Qux.Commands where

import Language.Qux.Annotated.PrettyPrinter

import Options.Applicative
import Options.Applicative.Types

import Prelude hiding (print)

import qualified Qux.Commands.Build as Build
import qualified Qux.Commands.Check as Check
import qualified Qux.Commands.Print as Print
import qualified Qux.Commands.Run   as Run


-- * Qux command

options :: ParserInfo Options
options = info (helper <*> version <*> qux) (fullDesc <> noIntersperse)
    where
        version = infoOption "0.0.0.0" $ mconcat [
            long "version",
            short 'V',
            help "Show this binary's version",
            hidden
            ]

data Options = Options {
    argCommand :: Command
    }

-- TODO (hjw): show the help message if no commands given
-- TODO (hjw): improve error message to say "Invalid command x"<commit_msg>Updated version to only have 3 components<commit_after>
{-# OPTIONS_HADDOCK hide, prune #-}

{-|
Module      : Qux.Commands

Copyright   : (c) <NAME>, 2015
License     : BSD3
Maintainer  : <EMAIL>
-}

module Qux.Commands where

import Language.Qux.Annotated.PrettyPrinter

import Options.Applicative
import Options.Applicative.Types

import Prelude hiding (print)

import qualified Qux.Commands.Build as Build
import qualified Qux.Commands.Check as Check
import qualified Qux.Commands.Print as Print
import qualified Qux.Commands.Run   as Run


-- * Qux command

options :: ParserInfo Options
options = info (helper <*> version <*> qux) (fullDesc <> noIntersperse)
    where
        version = infoOption "0.0.0" $ mconcat [
            long "version",
            short 'V',
            help "Show this binary's version",
            hidden
            ]

data Options = Options {
    argCommand :: Command
    }

-- TODO (hjw): show the help message if no commands given
-- TODO (hjw): improve error message to say "Invalid command x"
{'fraction_non_alphanumeric': 0.09540117416829745, 'fraction_numerical': 0.008806262230919765, 'mean_word_length': 2.917624521072797, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6469246', 'n_tokens_mistral': 632, 'n_tokens_neox': 620, 'n_words': 203}