kostya / eye

Process monitoring tool. Inspired from Bluepill and God.
MIT License
1.19k stars 89 forks source link

Can I pass arguments to config file in load command? #194

Closed joshweir closed 7 years ago

joshweir commented 7 years ago

Hi Eyes

I'd like to pass arguments to the config file in the load command theoretically like this:

eye load my.eye 10

#my.eye
my_param = ARGV[0] #<- my_param = 10

Is there any way to do this?

Thanks Josh

kostya commented 7 years ago

No, but use some external config:

config = YAML.load_file("/some/config.yml")
my_param = config['param']