Optional disable fill time for console output too
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user