Copyright | (c) Eric Mertens, 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module provides image rendering for the textbox in the context of command argument processing.
- argumentsImage :: Palette -> ArgumentSpec a -> String -> Image
Documentation
argumentsImage :: Palette -> ArgumentSpec a -> String -> Image Source #
Parse command arguments against a given ArgumentSpec
.
The given text will be rendered and then any missing arguments
will be indicated by extra placeholder values appended onto the
image. Parameters are rendered with plainText
except for
the case of RemainingArg
which supports WYSIWYG.