fix: add version option
Check and Lint / Check (pull_request) Successful in 18s
Check and Lint / Clippy (pull_request) Successful in 18s
Check and Lint / Rustfmt (pull_request) Successful in 23s
Test and Coverage / Test (pull_request) Successful in 19s
Check and Lint / Build RPM (pull_request) Successful in 32s
Test and Coverage / Coverage (pull_request) Successful in 40s
Check and Lint / Rustfmt (push) Successful in 15s
Check and Lint / Check (push) Successful in 18s
Check and Lint / Clippy (push) Successful in 18s
Test and Coverage / Test (push) Successful in 19s
Check and Lint / Build RPM (push) Successful in 44s
Release / Semantic release (push) Successful in 45s
Test and Coverage / Coverage (push) Successful in 43s
Release / Build and push RPM (push) Successful in 29s

This commit was merged in pull request #18.
This commit is contained in:
2026-08-12 14:27:29 +02:00
parent 95e3e3feac
commit 4c3b1f1249
+6 -2
View File
@@ -7,7 +7,7 @@ mod tui;
use std::path::{Path, PathBuf};
use anyhow::{Context, Error, Result, bail};
use clap::{Parser, Subcommand};
use clap::{ArgAction, Parser, Subcommand};
use config::{Config, LauncherEntry, load_config};
use detect::detect_beamline;
@@ -19,8 +19,12 @@ const LOCAL_CONFIG: &str = "data/defaults.json";
const DEFAULT_ENV_FILE: &str = "/etc/aaredaq/aaredaq.env";
#[derive(Parser)]
#[command(name = "aarel")]
#[command(name = "aarel", version, disable_version_flag = true)]
struct Cli {
/// Print version information.
#[arg(short = 'v', long = "version", action = ArgAction::Version)]
version: Option<bool>,
/// Path to the launcher config file. Defaults to /etc/aarel/defaults.json,
/// falling back to ./data/defaults.json.
#[arg(long)]