@@ -158,69 +158,69 @@ def setup_subcommands():
158158 name = "splatalogue" ,
159159 help = builtins ._ ("Query the Splatalogue spectral line database. (spl)" ),
160160 )
161- app .add_typer (splatalogue_cli .get_app (), name = "spl" ) # Alias for splatalogue
162- app .add_typer (ads_cli .get_app (), name = "ads" )
163- app .add_typer (
164- aavso_cli .get_app (),
165- name = "aavso" ,
166- help = builtins ._ ("Query the AAVSO Variable Star Index database." ),
167- )
168- app .add_typer (
169- fermi_cli .get_app (),
170- name = "fermi" ,
171- help = builtins ._ ("Query the Fermi Large Area Telescope data." ),
172- )
173-
174- @app .callback ()
175- def main_callback (
176- ctx : typer .Context ,
177- lang : str = typer .Option (
178- None ,
179- "-l" ,
180- "--lang" ,
181- help = builtins ._ (
182- "Set the language for output messages (e.g., 'en', 'zh'). Affects help texts and outputs."
161+ app .add_typer (splatalogue_cli .get_app (), name = "spl" ) # Alias for splatalogue
162+ app .add_typer (ads_cli .get_app (), name = "ads" )
163+ app .add_typer (
164+ aavso_cli .get_app (),
165+ name = "aavso" ,
166+ help = builtins ._ ("Query the AAVSO Variable Star Index database." ),
167+ )
168+ app .add_typer (
169+ fermi_cli .get_app (),
170+ name = "fermi" ,
171+ help = builtins ._ ("Query the Fermi Large Area Telescope data." ),
172+ )
173+
174+ @app .callback ()
175+ def main_callback (
176+ ctx : typer .Context ,
177+ lang : str = typer .Option (
178+ None ,
179+ "-l" ,
180+ "--lang" ,
181+ help = builtins ._ (
182+ "Set the language for output messages (e.g., 'en', 'zh'). Affects help texts and outputs."
183+ ),
184+ is_eager = True ,
185+ envvar = "AQC_LANG" ,
186+ show_default = False ,
187+ ),
188+ ping : bool = typer .Option (
189+ False ,
190+ "-p" ,
191+ "--ping" ,
192+ help = builtins ._ (
193+ "Test connectivity to major services (only available at top-level command)."
194+ ),
183195 ),
184- is_eager = True ,
185- envvar = "AQC_LANG" ,
186- show_default = False ,
187- ),
188- ping : bool = typer .Option (
189- False ,
190- "-p" ,
191- "--ping" ,
192- help = builtins ._ (
193- "Test connectivity to major services (only available at top-level command)."
196+ field : bool = typer .Option (
197+ False ,
198+ "-f" ,
199+ "--field" ,
200+ help = builtins ._ (
201+ "Test field validity for modules (only available at top-level command)."
202+ ),
194203 ),
195- ),
196- field : bool = typer .Option (
197- False ,
198- "-f" ,
199- "--field" ,
200- help = builtins ._ (
201- "Test field validity for modules (only available at top-level command)."
204+ debug : bool = typer .Option (
205+ False ,
206+ "-d" ,
207+ "--debug" ,
208+ help = builtins ._ ("Enable debug mode with verbose output." ),
209+ envvar = "AQC_DEBUG" ,
202210 ),
203- ),
204- debug : bool = typer .Option (
205- False ,
206- "-d" ,
207- "--debug" ,
208- help = builtins ._ ("Enable debug mode with verbose output." ),
209- envvar = "AQC_DEBUG" ,
210- ),
211- verbose : bool = typer .Option (
212- False , "-v" , "--verbose" , help = builtins ._ ("Enable verbose output." )
213- ),
214- ):
215- _ = builtins ._
216- ctx .obj = ctx .obj or {}
217-
218- # Initialize console for general use
219- console = Console ()
220-
221- # Set debug and verbose flags in context
222- ctx .obj ["debug" ] = debug
223- ctx .obj ["verbose" ] = verbose or debug
211+ verbose : bool = typer .Option (
212+ False , "-v" , "--verbose" , help = builtins ._ ("Enable verbose output." )
213+ ),
214+ ):
215+ _ = builtins ._
216+ ctx .obj = ctx .obj or {}
217+
218+ # Initialize console for general use
219+ console = Console ()
220+
221+ # Set debug and verbose flags in context
222+ ctx .obj ["debug" ] = debug
223+ ctx .obj ["verbose" ] = verbose or debug
224224
225225 # Enable debug manager
226226 if debug :
0 commit comments