From faf8341c5eb851c653184e361c9635de5edbace9 Mon Sep 17 00:00:00 2001
From: Shlomi Fish <shlomif@shlomifish.org>
Date: Tue, 16 Jun 2020 22:57:16 +0300
Subject: [PATCH] fix cmd line args

---
 pysollib/hint.py | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/pysollib/hint.py b/pysollib/hint.py
index 57e0b307..ed4fb31c 100644
--- a/pysollib/hint.py
+++ b/pysollib/hint.py
@@ -1022,11 +1022,15 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
             print('--------------------\n', board, '--------------------')
         #
         args = []
+        use_lib = True
         # args += ['-sam', '-p', '-opt', '--display-10-as-t']
-        args += ['-m', '-p', '-opt', '-sel']
-        if FCS_VERSION >= (4, 20, 0):
-            args += ['-hoi']
-        if progress:
+        if use_lib:
+            args += ['-opt', ]
+        else:
+            args += ['-m', '-p', '-opt', '-sel']
+            if FCS_VERSION >= (4, 20, 0):
+                args += ['-hoi']
+        if (not use_lib) and progress:
             args += ['--iter-output']
             fcs_iter_output_step = None
             if FCS_VERSION >= (4, 20, 0):
@@ -1052,7 +1056,6 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
         if 'esf' in game_type:
             args += ['--empty-stacks-filled-by', game_type['esf']]
 
-        use_lib = True
         if use_lib:
             import freecell_solver
             obj = freecell_solver.FreecellSolver()