diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 | ||
154 | def process(market_config, market_id, user_id, args, pg_config): | 157 | def process(market_config, market_id, user_id, args, pg_config): |
155 | try: | 158 | try: |