From 30b0412feaebc4ecbf6e50801ff043d283e02f1c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 21 Jun 2015 20:58:15 +0200 Subject: Added --inc and --dec --- adjmix/Adjmix.hs | 17 +++++++++++++++++ trivmix.cabal | 2 +- trivmix.nix | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/adjmix/Adjmix.hs b/adjmix/Adjmix.hs index 94416ac..0545395 100644 --- a/adjmix/Adjmix.hs +++ b/adjmix/Adjmix.hs @@ -52,6 +52,23 @@ optionParser = Options <> help "Subtract from the current level" ) ) + <|> ( ($) <$> ( flag' Add ( long "inc" + <> short 'i' + <> help "Increase level by a preset amount (see ‘--by’)" + ) + <|> flag' Sub ( long "dec" + <> short 'd' + <> help "Decrease level by a preset amount (see ‘--by’)" + ) + ) + <*> ( option auto ( long "by" + <> metavar "LEVEL" + <> value (read "5dB") + <> showDefault + <> help "Value to decrease/increase level by when using ‘--inc’ or ‘--dec’" + ) + ) + ) ) main :: IO () diff --git a/trivmix.cabal b/trivmix.cabal index 9b2d723..3dd339a 100644 --- a/trivmix.cabal +++ b/trivmix.cabal @@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: trivmix -version: 2.5.5 +version: 2.6.0 -- synopsis: -- description: license: PublicDomain diff --git a/trivmix.nix b/trivmix.nix index 1e329ab..82d4781 100644 --- a/trivmix.nix +++ b/trivmix.nix @@ -6,7 +6,7 @@ cabal.mkDerivation (self: { pname = "trivmix"; - version = "2.5.5"; + version = "2.6.0"; src = ./.; isLibrary = true; isExecutable = true; -- cgit v1.2.3