From 63d0a868ec416bd3fde04e2ed47b62882a6ff92d Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 20 Jul 2025 12:32:45 -0500 Subject: [PATCH] Make the URL and Repo FQRN CLI args optional They are no longer mandatory as they might be specified through the config file(s). Now to go assemble that config and fix the compiler errors. --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index ce281da..4b02858 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -4,9 +4,9 @@ use clap::{Parser, Subcommand}; #[command(version, about, long_about = None)] pub struct Args { #[arg(short = 'u', long = "url", env = "GTTOOL_GITEA_URL")] - pub gitea_url: String, + pub gitea_url: Option, #[arg(short = 'r', long = "repo", env = "GTTOOL_FQRN")] - pub repo: String, + pub repo: Option, #[command(subcommand)] pub command: Commands,