diff options
Diffstat (limited to 'src/SlackBuilder/CommandLine.hs')
| -rw-r--r-- | src/SlackBuilder/CommandLine.hs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/SlackBuilder/CommandLine.hs b/src/SlackBuilder/CommandLine.hs index 7639327..e06a40e 100644 --- a/src/SlackBuilder/CommandLine.hs +++ b/src/SlackBuilder/CommandLine.hs @@ -23,8 +23,7 @@ import Options.Applicative ) data SlackBuilderCommand - = CategoryCommand - | CheckCommand + = CheckCommand | Up2DateCommand (Maybe Text) slackBuilderParser :: ParserInfo SlackBuilderCommand @@ -32,11 +31,9 @@ slackBuilderParser = info slackBuilderCommand fullDesc slackBuilderCommand :: Parser SlackBuilderCommand slackBuilderCommand = subparser - $ command "category" (info categoryCommand mempty) - <> command "check" (info checkCommand mempty) + $ command "check" (info checkCommand mempty) <> command "up2date" (info up2DateCommand mempty) where - categoryCommand = pure CategoryCommand checkCommand = pure CheckCommand up2DateCommand = Up2DateCommand <$> optional (argument str (metavar "PKGNAM")) |
