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

Command descriptions #3

Closed
brandisher opened this issue Feb 13, 2015 · 2 comments
Closed

Command descriptions #3

brandisher opened this issue Feb 13, 2015 · 2 comments

Comments

@brandisher
Copy link

Is there currently a method in Silly for adding argument and option descriptions? E.g. --yell Description: Prints output as upper case.

@mnapoli
Copy link
Owner

mnapoli commented Feb 13, 2015

Yep the challenges now are descriptions and argument/options default values :) If you have any idea to suggest feel free.

Options I was thinking about:

$app->command('greet --yell', function () {
    // ...
})
    ->option('yell', 'Description');

or

$app->command('greet --yell', function () {
    // ...
});
$app->configure('greet')
    ->option('yell', 'Description');

@mnapoli
Copy link
Owner

mnapoli commented Feb 14, 2015

@cwscribner I implemented a solution in #5 if you have any feedback.

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

No branches or pull requests

2 participants