Optional disable fill time for console output too

This commit is contained in:
Кокос Артем Николаевич
2026-01-22 12:47:31 +07:00
parent ead6c72d16
commit 6416df481e
2 changed files with 9 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ def main(argv: Optional[List[str]] = None) -> int:
parser.add_argument(
"--no-time",
action="store_true",
help="Do not include 'Затрачено за отчетный период' column in ODT report"
help="Do not include spent time into table"
)
args = parser.parse_args(argv)
@@ -98,9 +98,9 @@ def main(argv: Optional[List[str]] = None) -> int:
else:
try:
if args.compact:
output = format_compact(issue_hours)
output = format_compact(issue_hours, fill_time=not args.no_time)
else:
output = format_table(issue_hours)
output = format_table(issue_hours, fill_time=not args.no_time)
print(output)
except Exception as e:
print(f"❌ Formatting error: {e}", file=sys.stderr)