rinex-cli 0.10.1

Command line tool parse and analyze RINEX data
// Positioning OPMODE
use clap::{value_parser, Arg, ArgAction, Command};
use rinex::prelude::Duration;

pub fn subcommand() -> Command {
    Command::new("positioning")
        .short_flag('p')
        .arg_required_else_help(false)
        .about("Precise Positioning opmode.
Use this mode to resolve precise positions and local time from RINEX dataset.
You should provide Observations from a unique receiver.")
        .arg(Arg::new("cfg")
            .short('c')
            .long("cfg")
            .value_name("FILE")
            .required(false)
            .action(ArgAction::Append)
            .help("Pass a Position Solver configuration file (JSON).
[https://docs.rs/gnss-rtk/latest/gnss_rtk/prelude/struct.Config.html] is the structure to represent in JSON.
See [] for meaningful examples."))
        .arg(Arg::new("spp")
            .long("spp")
            .action(ArgAction::SetTrue)
            .help("Force resolution method to Single Point Positioning (SPP).
Otherwise, the Default method is used.
Refer to [https://docs.rs/gnss-rtk/latest/gnss_rtk/prelude/enum.Method.html]."))
        .arg(Arg::new("gpx")
            .long("gpx")
            .action(ArgAction::SetTrue)
            .help("Format PVT solutions as GPX track."))
        .arg(Arg::new("kml")
            .long("kml")
            .action(ArgAction::SetTrue)
            .help("Format PVT solutions as KML track."))
        .next_help_heading("CGGTTS (special resolution for clock comparison / time transfer)")
        .arg(Arg::new("cggtts")
            .long("cggtts")
            .action(ArgAction::SetTrue)
            .help("Activate CGGTTS special solver.
Wrapps PVT solutions as CGGTTS file(s) for remote clock comparison (time transfer)."))
        .arg(Arg::new("tracking")
            .long("trk")
            .short('t')
            .value_parser(value_parser!(Duration))
            .action(ArgAction::Set)
            .help("CGGTTS custom tracking duration.
Otherwise, the default tracking duration is used.
Refer to []"))
        .arg(Arg::new("lab")
            .long("lab")
            .action(ArgAction::Set)
            .help("Define the name of your station or laboratory here."))
        .arg(Arg::new("utck")
            .long("utck")
            .action(ArgAction::Set)
            .conflicts_with("clock")
            .help("If the local clock tracks a local UTC replica, you can define the name
of this replica here."))
        .arg(Arg::new("clock") 
            .long("clk")
            .action(ArgAction::Set)
            .conflicts_with("utck")
            .help("If the local clock is not a UTC replica and has a specific name, you
can define it here."))
}