Skip to content

Commit 3122430

Browse files
committed
make -2, -8 optional
1 parent 8ba1c6c commit 3122430

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tmuxp/cli.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,14 +807,11 @@ def get_parser():
807807
help='socket path of tmux server. Same as tmux.',
808808
metavar='socket-path')
809809

810-
colorsgroup = parser.add_mutually_exclusive_group(
811-
required=True
812-
)
810+
colorsgroup = parser.add_mutually_exclusive_group()
813811

814812
colorsgroup.add_argument(
815813
'-2',
816814
dest='colors',
817-
# action='store_true',
818815
action='store_const',
819816
const=256,
820817
help='Force tmux to assume the terminal supports 256 colours.',
@@ -823,7 +820,6 @@ def get_parser():
823820
colorsgroup.add_argument(
824821
'-8',
825822
dest='colors',
826-
# action='store_true',
827823
action='store_const',
828824
const=88,
829825
help='Like -2, but indicates that the terminal supports 88 colours.',

0 commit comments

Comments
 (0)