Debian Codegraph @

biomaj/options.py

raw
1 class Options:
2 """
3 Available options
4 """
5
6 def __init__(self, options=None):
7 self.options = options
8
9 def get_option(self, option):
10 """
11 Gets an option if present, else return None
12 """
13 if hasattr(self, option):
14 return getattr(self, option)
15 return None
16
17 UPDATE = 'update'
18 REMOVE = 'remove'
19 PUBLISH = 'publish'
20 FROM_TASK = 'from_task'
21 PROCESS = 'process'
22 STOP_BEFORE = 'stop_before'
23 STOP_AFTER = 'stop_after'
24 FROMSCRATCH = 'fromscratch'