diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2020-03-22 08:55:13 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2020-03-22 08:55:13 +0100 |
commit | 774d6977c8d78697b786f000cf7c6a071787967b (patch) | |
tree | 075bcd8d1a778ab3dee51587403f7b4c58685e55 /lulua | |
parent | 86f4ce2cdbf75ac88262efa94180ce489b2e582e (diff) | |
download | lulua-774d6977c8d78697b786f000cf7c6a071787967b.tar.gz lulua-774d6977c8d78697b786f000cf7c6a071787967b.tar.bz2 lulua-774d6977c8d78697b786f000cf7c6a071787967b.zip |
optimize: Allow running without pinned keys
Set default value.
Diffstat (limited to 'lulua')
-rw-r--r-- | lulua/optimize.py | 2 |
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() |