mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
A3, Arg
- Some attribute values (ie wait:tomorrow) when parsed, need to take the data type of the attribute (date) and use that as an implied type of the value (date literal). - Arg renders type-less and category-less values as "", instead of "none". Cleaner output.
This commit is contained in:
parent
a3ba91c2a3
commit
de9dbbbb3d
2 changed files with 14 additions and 11 deletions
|
@ -121,7 +121,7 @@ const std::string Arg::type_name (Arg::type t)
|
|||
{
|
||||
switch (t)
|
||||
{
|
||||
case Arg::type_none: return "none";
|
||||
case Arg::type_none: return "";
|
||||
case Arg::type_pseudo: return "pseudo";
|
||||
case Arg::type_bool: return "bool";
|
||||
case Arg::type_string: return "string";
|
||||
|
@ -130,7 +130,7 @@ const std::string Arg::type_name (Arg::type t)
|
|||
case Arg::type_number: return "number";
|
||||
}
|
||||
|
||||
return "none";
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -161,7 +161,7 @@ const std::string Arg::category_name (Arg::category c)
|
|||
{
|
||||
switch (c)
|
||||
{
|
||||
case Arg::cat_none: return "none";
|
||||
case Arg::cat_none: return "";
|
||||
case Arg::cat_terminator: return "terminator";
|
||||
case Arg::cat_program: return "program";
|
||||
case Arg::cat_command: return "command";
|
||||
|
@ -180,7 +180,7 @@ const std::string Arg::category_name (Arg::category c)
|
|||
case Arg::cat_literal: return "literal";
|
||||
}
|
||||
|
||||
return "none";
|
||||
return "";
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue