From 6b409c56d4d1b3831ee21255bc79e10a3e69482b Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sat, 24 May 2025 19:33:21 -0500 Subject: [PATCH] Change primary arguments Owner and repo are combined into one string the same way Go dependencies or GitHub Actions are named. `/` Each will be fetched from a matching environment variable if not specified on the command line. --- src/cli.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index a604f2a..5e88536 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -3,10 +3,10 @@ use clap::{Parser, Subcommand}; #[derive(Debug, Parser)] #[command(version, about, long_about = None)] pub struct Args { - #[arg(short = 'o', long = "owner", env = "GTTOOL_OWNER")] - pub owner: String, - #[arg(short = 'r', long = "repo")] - pub repo: Option, + #[arg(short = 'u', long = "url", env = "GTTOOL_GITEA_URL")] + pub gitea_url: String, + #[arg(short = 'r', long = "repo", env = "GTTOOL_FQRN")] + pub repo: String, #[command(subcommand)] pub command: Commands,