@@ -100,8 +100,9 @@ def desktop(
100100 exit_with (operations .desktop (profile ))
101101
102102
103- @main .command ()
103+ @main .command (context_settings = dict ( ignore_unknown_options = True ) )
104104@click .argument ("profile_name" )
105+ @click .argument ("qb_args" , nargs = - 1 , type = click .UNPROCESSED )
105106@click .option (
106107 "-f" , "--foreground" , is_flag = True , help = "Run qutebrowser in the foreground."
107108)
@@ -110,13 +111,13 @@ def desktop(
110111)
111112@click .pass_obj
112113def 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. """
114115 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 ))
117117
118118
119- @main .command ()
119+ @main .command (context_settings = dict (ignore_unknown_options = True ))
120+ @click .argument ("qb_args" , nargs = - 1 , type = click .UNPROCESSED )
120121@click .option (
121122 "-m" ,
122123 "--menu" ,
@@ -128,9 +129,9 @@ def launch(profile_dir: Path, profile_name: str, **kwargs: Any) -> None:
128129def choose (profile_dir : Path , ** kwargs : Any ) -> None :
129130 """Choose a profile to launch.
130131 Support is built in for many X and Wayland launchers, as well as applescript dialogs.
132+ All QB_ARGS are passed on to qutebrowser."
131133 """
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 ))
134135
135136
136137@main .command ()
@@ -158,7 +159,7 @@ def then_launch(
158159 profile : Profile ,
159160 launch : bool ,
160161 foreground : bool ,
161- qb_args : list [str ] = [ ],
162+ qb_args : tuple [str , ... ],
162163 ** kwargs : Any ,
163164) -> None :
164165 exit_with (
0 commit comments