Comments (6)
Maybe also some or all of the types in the .Types
module, especially Parser
itself, but maybe not the (term-level) constructors. Another option is to export the .Internal
types from .Types
.
Currently I need three different imports for optparse, one of which is internal.
from optparse-applicative.
I did the exact same thing and had the exact same issue.
from optparse-applicative.
I added some exports in Builder. Does that fix the issue?
from optparse-applicative.
It does fix the issue of having to import .Internal
in my case, although I'd still like for at least Parser
to be exported from Options.Applicative
in some way.
In my particular case I also need import Options.Applicative.Types (Completer(..))
because I'm getting completions from a database and doing the prefix check myself in the query as an optimization (listIOCompleter
would be slower), but perhaps that's a special case, or perhaps the right solution for that would be to add a completer = Completer
to Options.Applicative.Builder.Completer
or something?
from optparse-applicative.
although I'd still like for at least Parser to be exported from Options.Applicative in some way
But it is, isn't it? It comes from Common
.
In my particular case I also need import
Options.Applicative.Types (Completer(..))
because I'm getting completions from a database and doing the prefix check myself in the query as an optimization
Yeah, that's reasonable. I've now added mkCompleter = Completer
and exports.
from optparse-applicative.
Cool, thanks!
from optparse-applicative.
Related Issues (20)
- Support for parsing RawFilePath HOT 1
- Showing help on empty with inline subcommands HOT 6
- Listification (like `some1`) does not change the `metavar` to plural HOT 2
- Add ability to group aliases in --help HOT 2
- Offer a positional parser HOT 2
- Parse in interactive program HOT 2
- Export `requote` from `Options.Applicative.Builder.Completer` HOT 2
- Options shown in Global section can include unreachable alternatives. HOT 4
- Add Semigroup/Monoid to Parser HOT 7
- Ignore unused flags HOT 2
- Parser HOT 1
- (Question) Is there value in storing CLI output in a text file and using it as a golden test? HOT 1
- Is it possible to automatically show in help which values are valid for an option? HOT 3
- Stack executable built against `optparse-applicative-0.17.1.0` 'hangs' HOT 20
- Ansi annotations aren't being rendered.
- How do I print help info with colored command names? HOT 14
- v0.18: `text` no longer exported from `Options.Applicative.Help.Pretty` HOT 4
- Default command and command alias
- Apply style for command groups HOT 3
- partitioning args HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optparse-applicative.