Skip to content

Commit

Permalink
feat(cli-subcommand): change convert arg name
Browse files Browse the repository at this point in the history
Change `dst` to `destination` for readability.
  • Loading branch information
SARDONYX-sard committed Jan 20, 2024
1 parent 890a71e commit 3458226
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dar2oar_cli/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use dar2oar_core::{convert_dar_to_oar, get_mapping_table, Closure, ConvertOption

pub(crate) async fn dar2oar(args: Convert) -> anyhow::Result<()> {
let config = ConvertOptions {
dar_dir: args.src,
oar_dir: args.dst,
dar_dir: args.source,
oar_dir: args.destination,
mod_name: args.name,
author: args.author,
section_table: get_mapping_table(args.mapping_file).await,
Expand All @@ -18,13 +18,13 @@ pub(crate) async fn dar2oar(args: Convert) -> anyhow::Result<()> {
#[derive(Debug, clap::Args)]
pub(crate) struct Convert {
#[clap(value_parser)]
/// DAR source dir path
src: String,
/// Path containing the "DynamicAnimationReplacer" directory
source: String,
#[clap(long)]
/// OAR destination dir path(If not, it is inferred from DAR path)
dst: Option<String>,
/// "OpenAnimationReplacer" directory output destination (if none, inferred from DAR path)
destination: Option<String>,
#[clap(long)]
/// Mod name in config.json & directory name(If not, it is inferred from DAR path)
/// Mod name in config.json & directory name (if none, inferred from DAR path)
name: Option<String>,
#[clap(long)]
/// Mod author in config.json
Expand Down Expand Up @@ -52,7 +52,7 @@ pub(crate) struct Convert {

// ---logger
#[clap(long)]
/// Log output to stdout as well
/// Log output to standard output as well
pub stdout: bool,
#[clap(long, default_value = "error")]
/// Log level
Expand Down

0 comments on commit 3458226

Please sign in to comment.