summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-03-22 08:55:13 +0100
committerLars-Dominik Braun <lars@6xq.net>2020-03-22 08:55:13 +0100
commit774d6977c8d78697b786f000cf7c6a071787967b (patch)
tree075bcd8d1a778ab3dee51587403f7b4c58685e55
parent86f4ce2cdbf75ac88262efa94180ce489b2e582e (diff)
downloadlulua-774d6977c8d78697b786f000cf7c6a071787967b.tar.gz
lulua-774d6977c8d78697b786f000cf7c6a071787967b.tar.bz2
lulua-774d6977c8d78697b786f000cf7c6a071787967b.zip
optimize: Allow running without pinned keys
Set default value.
-rw-r--r--lulua/optimize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lulua/optimize.py b/lulua/optimize.py
index db5807b..517f656 100644
--- a/lulua/optimize.py
+++ b/lulua/optimize.py
@@ -269,7 +269,7 @@ def optimize ():
type=int, default=0, help='Limit number of triads to use')
parser.add_argument('-n', '--steps', type=int, default=10000, help='Number of iterations')
parser.add_argument('-r', '--randomize', action='store_true', help='Randomize layout before optimizing')
- parser.add_argument('-p', '--pin', type=parsePin, help='Pin these layers/buttons')
+ parser.add_argument('-p', '--pin', default=[], type=parsePin, help='Pin these layers/buttons')
parser.add_argument('-m', '--model', choices=list (models.keys()), default='mod01', help='Carpalx model')
args = parser.parse_args()