aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index 2c7b570..f465d8d 100644
--- a/main.py
+++ b/main.py
@@ -149,7 +149,10 @@ def parse_args(argv):
149 parser.add_argument("--db-database", default="cryptoportfolio", 149 parser.add_argument("--db-database", default="cryptoportfolio",
150 help="Database access to database (default: cryptoportfolio)") 150 help="Database access to database (default: cryptoportfolio)")
151 151
152 return parser.parse_args(argv) 152 parsed = parser.parse_args(argv)
153 if parsed.action is None:
154 parsed.action = ["sell_all"]
155 return parsed
153 156
154def process(market_config, market_id, user_id, args, pg_config): 157def process(market_config, market_id, user_id, args, pg_config):
155 try: 158 try: