Skip to content
New issue

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

allow pakefile to add definition of custom parameters #12

Open
gggeek opened this issue Apr 7, 2011 · 3 comments
Open

allow pakefile to add definition of custom parameters #12

gggeek opened this issue Apr 7, 2011 · 3 comments
Labels

Comments

@gggeek
Copy link
Collaborator

gggeek commented Apr 7, 2011

Right now any custom parameter passed on the command line is rejected (ie. all the ones not defined in pakeapp class).

It would be nice if the user could add support for custom parameters, a la java (eg. -Dmyparam=myvalue), or by plain registration of more options.

As far as I can tell, this is now impossible, as the function run() does not allow to specify extra options definitions, but only options values. Also the do_option() method should be modified accordingly

@gggeek
Copy link
Collaborator Author

gggeek commented Apr 7, 2011

PS: I just found out that optional arguments and options can be added on the cli after the name of the task. Duh. This allows me to reach my goals, but in a slightly more awkward way: for a generic parameter, I have to add its handling to all of my actions...

@indeyets
Copy link
Owner

indeyets commented Apr 7, 2011

Tasks have arguments and named parameters (second and third parameters to run_XXXX functions).

On command-line they should be given after task name

07.04.2011, в 15:42, [email protected] написал(а):

Right now any custom parameter passed on the command line is rejected (ie. all the ones not defined in pakeapp class).

It would be nice if the user could add support for custom parameters, a la java (eg. -Dmyparam=myvalue), or by plain registration of more options.

As far as I can tell, this is now impossible, as the function run() does not allow to specify extra options definitions, but only options values. Also the do_option() method should be modified accordingly

Reply to this email directly or view it on GitHub:
#12

@indeyets
Copy link
Owner

indeyets commented Apr 7, 2011

"generic" arguments is an open question. so, I leave this bug opened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants