Skip to content

Commit a68c565

Browse files
committed
Add 'week_start' common option, mapped to dialog's --week-start option
* The value may be an integer or a string (cf. dialog's man page for more details). * Using this requires dialog 1.3-20160126 or later.
1 parent d286c13 commit a68c565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎dialog.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ def _simple_option(option, enable):
405405
"trim": lambda enable: _simple_option("--trim", enable),
406406
"version": lambda enable: _simple_option("--version", enable),
407407
"visit_items": lambda enable: _simple_option("--visit-items", enable),
408+
"week_start": lambda start: _dash_escape_nf(
409+
("--week-start", str(start) if isinstance(start, int) else start)),
408410
"yes_label": lambda s: _dash_escape_nf(("--yes-label", s)) }
409411

410412

0 commit comments

Comments
 (0)