We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
mycli -i ./**/*.hs
[FilePath]
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".
cabal run mycli -- --files ./**/*.hs --output ./output.txt
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.
--files x.hs --files y.hs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: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.The text was updated successfully, but these errors were encountered: