UniHs-0.0.1.0: Maintain and create assessment template directories from templates
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Options

Description

Module contains functionality for parsing command line arguments

Synopsis

Types

These types encapsulates the provided command line arguments.

data ProgramCommand #

Datatype for which command the program will execute.

Constructors

CreateAssessment

Create a new assessment directory

Fields

  • AssessmentCopyToLocation

    Whether or not to copy an assessment template here, or into a new assessment directory (via *--here* flag)

GradingCLI

Start the CLI to add, edit, or use hypothetical grades for various features

Instances

Instances details
Show ProgramCommand # 
Instance details

Defined in Data.Options

newtype AppArgs #

Data type containing data for parsed command line arguments.

Constructors

AppArgs 

Instances

Instances details
Show AppArgs # 
Instance details

Defined in Data.Options

data ProgramOptions #

Options used at runtime containing parsed AppArgs

Instances

Instances details
Show ProgramOptions # 
Instance details

Defined in Data.Options

Parser functions

argParser :: Parser AppArgs #

Application argument parser used to parse AppArgs.

parseFlagAssessmentCopyToLocation :: Parser AssessmentCopyToLocation #

Parses --here flag for AssessmentCopyToLocation. Using the flag results in Here. Otherwise, NewCourseAssessment.

Option Parsing

getProgramOptions :: IO ProgramOptions #

Used to create a ProgramOptions by parsing AppArgs from the commandline.