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 defining options that apply to children commands #2

Closed
jacobdeichert opened this issue Jul 12, 2019 · 1 comment
Closed

Allow defining options that apply to children commands #2

jacobdeichert opened this issue Jul 12, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@jacobdeichert
Copy link
Owner

## services

**OPTIONS:**
* port
    * flags: -p --port
    * type: string
    * desc: Which port to serve on


### services start <service_name>

> Start or restart a service.

Child command would have the parent's `port` variable in scope.

~~~bash
echo "Starting service $service_name on $port"
~~~
@jacobdeichert jacobdeichert added the enhancement New feature or request label Jul 12, 2019
@jacobdeichert
Copy link
Owner Author

After thinking about this further, it doesn't seem worth it. All subcommands of a command would rarely need access to the exact same set of options.

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

No branches or pull requests

1 participant