split common command line args parsing

A new function parse_args_common() that only parses
common command line options. The returned object can
be composed to parse more arguments.
As is done by parse_args().
This commit is contained in:
kryofly
2018-01-06 07:39:05 +01:00
parent 74a708b794
commit 47675943ee
3 changed files with 44 additions and 34 deletions

View File

@@ -405,7 +405,8 @@ def main() -> None:
:return: None
"""
global _CONF
args = parse_args(sys.argv[1:])
args = parse_args(sys.argv[1:],
'Simple High Frequency Trading Bot for crypto currencies')
if not args:
exit(0)