thesharp / daemonize

daemonize is a library for writing system daemons in Python.
MIT License
445 stars 64 forks source link

Add support for action_args and action_kwargs #52

Closed msukmanowsky closed 8 years ago

msukmanowsky commented 8 years ago

This PR allows users to pass optional args and kwargs to their action function. It combines args that may have been received from privileged_action() and updates the documentation to clarify that.

Also makes a few very minor improvements.

knsd commented 8 years ago

Hi, Mike!

Why is this approach better than using functools.partial?

msukmanowsky commented 8 years ago

Completely spaced out on functools.partial before writing this. Don't think there'd be any clear advantage to using what I have here compared to partial, closing out.