jp: refactoring using ArgParse
This commit is contained in:
parent
eeff94469a
commit
f4de26e4e8
1 changed files with 631 additions and 441 deletions
9
frontends/src/jp/common.py
Normal file
9
frontends/src/jp/common.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
|
||||
class MissingPlugin(Exception):
|
||||
pass
|
||||
|
||||
def require(plugin_name):
|
||||
suported_plugins = ["profile"]
|
||||
if plugin_name not in Supported_plugins:
|
||||
raise MissingPlugin
|
||||
Loading…
Reference in a new issue