Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Main ( main ) where
- -- import Network.Download
- import System.Environment
- import Options.Applicative
- data Params = Params
- { artist :: String
- , title :: String
- , count :: Int }
- params :: Parser Params
- params = Params
- <$> strOption
- ( long "artist"
- <> help "Artist of track(s).")
- <$> strOption
- ( long "title"
- <> help "Title of the song.")
- <$> strOption
- ( long "count"
- <> help "Count of files to download.")
- main :: IO ()
- main = params =<< getArgs
Advertisement
Add Comment
Please, Sign In to add comment