taskbook icon indicating copy to clipboard operation
taskbook copied to clipboard

-- in a task description gets excluded

Open alichtman opened this issue 6 years ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

Two -s in a row get filtered out of the final output.

To Reproduce Steps to reproduce the behavior.

image image

Expected behavior A clear and concise description of what you expected to happen.

Two dashes should have been present between "Any" and "Thing"

Screenshots If applicable, add screenshots to help explain your problem.

Technical Info (please complete the following information)

  • OS: MacOS
  • Node.js Version: v10.6.0
  • Taskbook Version: 0.1.1

alichtman avatar Aug 01 '18 04:08 alichtman

It's not a great workaround, but if you enclose your task text in quotes, like:

tb -t "Do these dashes -- work?"

This should save properly.

I ended up trying out commander as a command line parsing library, and even with its level of support, it still chokes on the double dashes here.

knappg avatar Aug 08 '18 04:08 knappg

I wonder if there's a way to specify that no more arguments/options will be used.

For example, tagging -t as a "solo option" or something, guaranteeing that any -- or - that follows it is not meant for the shell to interpret.

Potentially worth opening an issue on the Commander library?

alichtman avatar Aug 09 '18 00:08 alichtman