lib/daemon-ogre/argv.rb in daemon-ogre-2.0.1 vs lib/daemon-ogre/argv.rb in daemon-ogre-2.0.2

- old
+ new

@@ -12,18 +12,32 @@ end return false end + @@daemon_keys= [:daemonize,:daemon,:d] def daemonize? - check_args_for( *[:d,:daemon,:daemonize]) + check_args_for( *@@daemon_keys ) end alias :daemon? :daemonize? + @@terminate_keys= [:terminate,:kill,:k] def terminate? - check_args_for( *[:k,:kill,:terminate]) + check_args_for( *@@terminate_keys ) end + ::ARGVEXT.add_help_msg( + "Start with one of the following tags the app, and it will be daemonized", + *@@daemon_keys + ) + + ::ARGVEXT.add_help_msg( + "Start with one of the following tags the app, and it will be terminate the running app instance", + *@@terminate_keys + ) + + end end -end \ No newline at end of file +end +