Skip to content

Commit

Permalink
Remove modifier from __main__
Browse files Browse the repository at this point in the history
Signed-off-by: Slendi <[email protected]>
  • Loading branch information
xslendix committed Jul 13, 2024
1 parent 7250600 commit cee799d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nexus/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ def main():
parser_start.add_argument("--allowed-first-chars",
default=Defaults.DEFAULT_ALLOWED_FIRST_CHARS,
help="Chars to be considered as the first char in words")
parser_start.add_argument("--remove-modifier-key", action="append", default=[],
help="Remove a modifier key from the default set",
choices=sorted(key.name for key in Defaults.DEFAULT_MODIFIER_KEYS))

# Num words
subparsers.add_parser("numwords", help="Get number of words in freqlog",
Expand Down Expand Up @@ -344,8 +341,7 @@ def _prompt_for_password(new: bool, desc: str = "") -> str:
sys.exit(4)
signal.signal(signal.SIGINT, lambda _: freqlog.stop_logging())
freqlog.start_logging(args.new_word_threshold, args.chord_char_threshold, args.allowed_chars,
args.allowed_first_chars, Defaults.DEFAULT_MODIFIER_KEYS -
set(args.remove_modifier_key) | set(args.add_modifier_key))
args.allowed_first_chars)
case "checkword": # Check if word is banned
for word in args.word:
if freqlog.check_banned(word):
Expand Down

0 comments on commit cee799d

Please sign in to comment.