Giter VIP home page Giter VIP logo

Comments (2)

adrianaisemberg avatar adrianaisemberg commented on August 16, 2024

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 -defgh

Great 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.

daball avatar daball commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.