When working with files, I'd like to be able to do something like mycli -i ./**/*.hs and have all the files populate [FilePath]. MVE:
data MyCLI = MyCLI { files :: [FilePath], output :: FilePath }
deriving (Generic)
deriving anyclass (ParseRecord)
main :: IO ()
main = getRecord "file-based CLI" >>= print
Running this as cabal run mycli -- --files ./**/*.hs --output ./output.txt fails to parse with "InvalidArgument".
I can see that, from the docs, you expect lists to be handled as --files x.hs --files y.hs etc., but with file globbing that's not going to happen.
When working with files, I'd like to be able to do something like
mycli -i ./**/*.hsand have all the files populate[FilePath]. MVE:Running this as
cabal run mycli -- --files ./**/*.hs --output ./output.txtfails to parse with "InvalidArgument".I can see that, from the docs, you expect lists to be handled as
--files x.hs --files y.hsetc., but with file globbing that's not going to happen.