Commit ffc35d5b authored by Devaev Maxim's avatar Devaev Maxim

exit() on help() and version()

parent fd8ad006
......@@ -41,9 +41,11 @@ if __name__ == "__main__" :
for (opts_list_item, args_list_item) in opts_list :
if opts_list_item in ("-h", "--help") :
help()
sys.exit(0)
elif opts_list_item in ("-v", "--version") :
version()
sys.exit(0)
elif opts_list_item in ("--log-level") :
try :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment