-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add :stopped to opts when stopped by on_stop #105
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this could break any existing users that may have stopped as an option. Though, I'm not sure there's any "nice" way to do this given the hash. Maybe prefix the symbol with an underscore (i.e. :_stopped
)
:_stopped sounds perfect to me - good catch on the possible conflict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Fryguy you good with the _stopped
?
I would like to have the parser set a value if on_stop finds a keyword in the args. Otherwise I need to parse the first argument of ARGV in order to determine whether or not a valid command was given (in a command/subcommand scenario).
Only adds it if on_stop exists.