ericcornelissen/wordrow

Prefix notation cannot be used with inline mappings

Closed this issue · 0 comments

Bug Report

  • wordrow version: v0.4.0-beta
  • Operating system: Ubuntu 19.04

Description

It is currently not possible to use the prefix notation with inline/CLI specified mappings.

Actual Behaviour

When providing a mapping that uses the prefix notation, e.g. ⬇️, wordrow will output an error saying "Missing value for --map/-m option".

$ ./wordrow --map "-bar,-baz" ./inputfile.txt

Expected Behaviour

wordrow should simply take the argument provided after --map and add it to the internal list of mappings.

Working Example

  1. Define an input file.
# inputfile.txt

foobar
  1. Run
$ ./wordrow --map "-bar,-baz" ./inputfile.txt

Log Output

$ wordrow --map "-bar,-baz" ./inputfile.txt
[Error] Missing value for --map/-m option