Enhancement - Supports '--' on the command line

- Using '--' on the command line separates the left hand side, where
  task is free to interpret arguments in the usual way, and the right
  hand side, which is then assumed to be part of the task description,
  and is not interpreted by task.
This commit is contained in:
Paul Beckingham 2009-05-24 22:32:36 -04:00
parent 020604334e
commit c223d38872
7 changed files with 128 additions and 70 deletions

View file

@ -175,6 +175,24 @@
</p>
<hr>
<p>
<b>
Q: How do I use '+word' in a task description, and prevent it
from being interpreted as a tag?
</b>
<br />
A: There are several ways to do this. The simplest is to use
the '--' argument in the command line, and task will assume
that everything afterwards is part of the description. For
example:
<pre><code>% task add -- +tag</code></pre>
Allows the task description to be "+tag". If you use the
command:
<pre><code>% task &lt;id&gt; edit</code></pre>
Then you are free to put (almost) anything in the description
field without task interpreting it.
</p>
<hr>
<!--
<p>
<b>