- 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:
Paul Beckingham 2011-08-21 14:24:26 -04:00
parent a3ba91c2a3
commit de9dbbbb3d
2 changed files with 14 additions and 11 deletions

View file

@ -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 "";
}
///////////////////////////////////////////////////////////////////////////////