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.
This commit is contained in:
2025-07-20 12:32:45 -05:00
parent 4e9a5dd25b
commit 63d0a868ec

View File

@@ -4,9 +4,9 @@ use clap::{Parser, Subcommand};
#[command(version, about, long_about = None)] #[command(version, about, long_about = None)]
pub struct Args { pub struct Args {
#[arg(short = 'u', long = "url", env = "GTTOOL_GITEA_URL")] #[arg(short = 'u', long = "url", env = "GTTOOL_GITEA_URL")]
pub gitea_url: String, pub gitea_url: Option<String>,
#[arg(short = 'r', long = "repo", env = "GTTOOL_FQRN")] #[arg(short = 'r', long = "repo", env = "GTTOOL_FQRN")]
pub repo: String, pub repo: Option<String>,
#[command(subcommand)] #[command(subcommand)]
pub command: Commands, pub command: Commands,