Comments (2)
Hi David,
Unfortunately a sequence of verbs is not supported and seems to be a major
change.
The params prefix may be a relatively small change but I won't do it :)
I'm focusing my spare time now on apps and I consider the CLAP project
sealed, unless a bug is raised or folks want to push a change.
Having said that - you are welcome to do so ;)
BTW, here's my current project I'm working on right now:
https://play.google.com/store/apps/details?id=com.sharpregion.tapet
Thanks,
Adrian
On Tue Dec 02 2014 at 7:46:27 PM David Ball [email protected]
wrote:
For my specific application, I'll need to be able to issue a sequence of
verbs to configure the application before the final verb executes the
application action.For instance:
app.exe verb1 /option1=value /option2=value verb2 /option1=value
/option2=value ...This would require that each verb method could be executed multiple times
as well. For instance:app.exe verb1 /option1=value1 verb1 /option1=value2 verb1 /option1=value3
...Now to get really specific, a real example of how it will be used:
mp.exe template /file="template.xml" data /file="data.json" compiler
/engine="mustache#" output /file="render.xml"And:
mp.exe template /file="template.xml" data /file="author.json" /as="Author"
data /file="book.json" /as="Book" compiler /engine="mustache#" output
/file="render.xml"Is executing a verb sequence currently supported? Can it be done easily?
When I try it is throwing CLAP.MissingArgumentPrefixException, saying it
should be prefixed with one of "/" or "-".I'm also with the crowd that would probably rather see the GNU-style
parameters supported, especially with Microsoft moving towards an
open-source .NET. Something like:mp.exe template --file="template.xml" data --file="data.json" compiler
--engine="mustache#" output --file="render.xml"A single dash has been used in the past to either indicate the presence of
a single-character parameter with or without a value or a sequence of
single-character switches that do not have values. E.g. -a -b=123 -defghGreat work so far. I would be interested in implementing both of these
features if you would like.—
Reply to this email directly or view it on GitHub
#31.
from clap.
I'm going to look into it. It may not be a major change. I haven't analyzed any of the code yet, so I have no idea what I'm going to be getting into yet. It would seem that you could just peek around the corner where CLAP.MissingArgumentPrefixException gets thrown and see if the parameter matches a verb instead of a parameter. On the surface, it would seem like a trivial change. It just depends on the implementation I suppose. And sadly I won't be able to even dig into it for at least a couple of days now.
Nice wallpaper app. I put it on my Nexus 7 tablet. Do you think that the wallpaper width should be somewhat larger than the screen so that when you move between home screens that the wallpaper pans/slides with the screen?
from clap.
Related Issues (20)
- Multiple apps and help - how to call? HOT 4
- Merge #24 break when an exception is not serializable HOT 2
- Allow [DirectoryExists], [FileExists], [PathExists] to be applied to global parameters HOT 3
- Help text of parameters not displayed HOT 3
- Error attribute is ignored when RunConsole is used HOT 2
- .pdb file is included in nuget package HOT 4
- Required property on ParameterAttribute not working HOT 1
- Remove Windows.Forms Dependency HOT 3
- Strong name assemblies HOT 3
- Help isn't being shown HOT 2
- Correctly bubbling exit-codes HOT 2
- couldn't make it work HOT 2
- Add support for Argument Models HOT 3
- Feature Request: Interactive REPL shell support HOT 1
- Simpler scenarios support HOT 1
- Create base exception class for all CLAP exceptions HOT 2
- Parameter Help format HOT 1
- [PreVerbExecution] method not called for [Empty] verb
- How can I create such an awesome website? 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 clap.