mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Documentation
- Added internal documentation on the use of categorized arguments in filters.
This commit is contained in:
parent
3abb4d7dd6
commit
63308441ec
1 changed files with 30 additions and 1 deletions
|
@ -248,7 +248,36 @@ void Arguments::append_stdin ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Scan all the arguments, and assign a category for each one.
|
// Scan all the arguments, and assign a category for each one. The categories
|
||||||
|
// are used to identify arguments types, and when extracting filters and
|
||||||
|
// modifications.
|
||||||
|
//
|
||||||
|
// Categories and filters:
|
||||||
|
//
|
||||||
|
// ro wr mods words
|
||||||
|
// terminator - - - -
|
||||||
|
// program - - - -
|
||||||
|
// command - - - -
|
||||||
|
// rc - - - -
|
||||||
|
// override - - - -
|
||||||
|
// id Y Y Err Y
|
||||||
|
// uuid Y Y Err Y
|
||||||
|
// word Y < > Y
|
||||||
|
// tag Y < > Y
|
||||||
|
// attmod Y < Err -
|
||||||
|
// attr Y < > -
|
||||||
|
// substitution Err Err > Y
|
||||||
|
// pattern Y < Err Y
|
||||||
|
// op Y < > Y
|
||||||
|
// exp Y < Err Y
|
||||||
|
//
|
||||||
|
// Legend:
|
||||||
|
// Y Included
|
||||||
|
// - Excluded
|
||||||
|
// < Included if before <command>
|
||||||
|
// > Included if after <command>
|
||||||
|
// Err Error if present
|
||||||
|
|
||||||
void Arguments::categorize ()
|
void Arguments::categorize ()
|
||||||
{
|
{
|
||||||
bool terminated = false;
|
bool terminated = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue