Expand description
CLI argument parsing with subcommands (zero dependencies).
Supports both new-style subcommands and legacy flat-flag mode:
spectroxide solve single-burst --z-h 2e5 --delta-rho 1e-5
spectroxide sweep --z-injections 1e3,1e4,1e5 --format csv
spectroxide greens --z-h 2e5 --delta-rho 1e-5
spectroxide info --cosmology planck2018
spectroxide helpIf the first argument is not a known subcommand, falls back to legacy flat-flag parsing with a deprecation warning.
Structs§
- Cosmo
Opts - Cosmology parameters.
- Greens
Opts - Options for
spectroxide greens [flags]. - Info
Opts - Options for
spectroxide info. - Output
Opts - Output formatting options.
- Photon
Sweep Batch Opts - Options for
spectroxide photon-sweep-batch [flags]. - Photon
Sweep Opts - Options for
spectroxide photon-sweep [flags]. - Solve
Opts - Options for
spectroxide solve <injection-type> [flags]. - Solver
Opts - Solver tuning parameters.
- Sweep
Opts - Options for
spectroxide sweep [flags].
Enums§
- Command
- Top-level command parsed from CLI args.
Functions§
- build_
cosmology - Build a Cosmology from CosmoOpts.
- build_
injection_ scenario - Build an InjectionScenario from CLI arguments.
- execute_
greens - Execute a Green’s function calculation. Returns result without doing I/O.
- execute_
photon_ sweep - Execute a photon injection sweep over multiple injection redshifts at a fixed x_inj. Returns result without doing I/O.
- execute_
photon_ sweep_ batch - Execute a batch photon injection sweep over multiple x_inj values.
- execute_
solve - Execute a single PDE solve. Returns result without doing I/O.
- execute_
sweep - Execute a sweep over multiple injection redshifts. Returns result without doing I/O.
- parse_
command - Parse CLI arguments into a Command.
- parse_
flat_ args - Parse flat –key value args into a HashMap (shared by all subcommands and legacy mode).
- print_
help - Print help text to stderr.
- print_
info - Print cosmology info.