@@ -100,8 +100,9 @@ def desktop(
100
100
exit_with (operations .desktop (profile ))
101
101
102
102
103
- @main .command ()
103
+ @main .command (context_settings = dict ( ignore_unknown_options = True ) )
104
104
@click .argument ("profile_name" )
105
+ @click .argument ("qb_args" , nargs = - 1 , type = click .UNPROCESSED )
105
106
@click .option (
106
107
"-f" , "--foreground" , is_flag = True , help = "Run qutebrowser in the foreground."
107
108
)
@@ -110,13 +111,13 @@ def desktop(
110
111
)
111
112
@click .pass_obj
112
113
def launch (profile_dir : Path , profile_name : str , ** kwargs : Any ) -> None :
113
- """Launch qutebrowser with a specific profile."""
114
+ """Launch qutebrowser with a specific profile. All QB_ARGS are passed on to qutebrowser. """
114
115
profile = Profile (profile_name , profile_dir )
115
- # TODO qb args
116
- exit_with (operations .launch (profile , qb_args = [], ** kwargs ))
116
+ exit_with (operations .launch (profile , ** kwargs ))
117
117
118
118
119
- @main .command ()
119
+ @main .command (context_settings = dict (ignore_unknown_options = True ))
120
+ @click .argument ("qb_args" , nargs = - 1 , type = click .UNPROCESSED )
120
121
@click .option (
121
122
"-m" ,
122
123
"--menu" ,
@@ -128,9 +129,9 @@ def launch(profile_dir: Path, profile_name: str, **kwargs: Any) -> None:
128
129
def choose (profile_dir : Path , ** kwargs : Any ) -> None :
129
130
"""Choose a profile to launch.
130
131
Support is built in for many X and Wayland launchers, as well as applescript dialogs.
132
+ All QB_ARGS are passed on to qutebrowser."
131
133
"""
132
- # TODO qb args
133
- exit_with (operations .choose (profile_dir = profile_dir , qb_args = [], ** kwargs ))
134
+ exit_with (operations .choose (profile_dir = profile_dir , ** kwargs ))
134
135
135
136
136
137
@main .command ()
@@ -158,7 +159,7 @@ def then_launch(
158
159
profile : Profile ,
159
160
launch : bool ,
160
161
foreground : bool ,
161
- qb_args : list [str ] = [ ],
162
+ qb_args : tuple [str , ... ],
162
163
** kwargs : Any ,
163
164
) -> None :
164
165
exit_with (
0 commit comments