Comments (4)
IModelBindingDefinition
defines a property called SwitchDelimiter
that allows you to change it to something other than the default forward slash /
. You can also call the extension method AsFluent()
off of IModelBindingDefinition
, then call UsingSwitchDelimiter()
to change the delimiter used by Args.
Let me know if this doesn't work for you.
from args.
Awesome. I'll look at it. I'm really wanting to have both options, perhaps even mix-n-match. Would this allow for that? If not, I'll make a pull request as I'm reworking Thorn (soon).
from args.
You mean to allow for a command like:
myapp.exe -d "my value" /t 0
Args doesn't currently support that, it runs under the assumption that all delimiters are the same.
from args.
The mix 'n match is really silly. Nevermind. What I'll do is surface a configuration for it in thorn and pass it to you when I create the binding definition. Thanks. For having fixed my issue before I had it. =o)
from args.
Related Issues (20)
- Improve algorithm used to create short forms
- Not currently a way to use a custom IArgsTypeConverter with conventions HOT 1
- Default parsing does not work if class is in a different namespace HOT 1
- Only public constructors are used for creation of ArgsType HOT 1
- Handle Array or IEnumerable<T> Model Properties HOT 7
- Changing Switch delimiter HOT 4
- Specify argument to property binding HOT 2
- ArgsTypeResolver: How to set the "Current" static property HOT 3
- Escaping Switch Delimiter Used in Arguments HOT 5
- Error in parsing HOT 4
- Can you provide better examples in docs? HOT 5
- Wrong exception text: "Number of ordinal arguments must at least {0}."
- Publish package that targets .NET Standard rather than a specific framework HOT 3
- switches without args not working when solo or last HOT 5
- Args Parsing Fails for Boolean as last arg HOT 1
- Generating help fails when a arguments type has no public properties HOT 1
- arguments class can not have superclass HOT 2
- Respond to [Required] HOT 2
- Reduce noise in help for parameters that don't have extra info. HOT 1
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 args.