/*
 * Copyright 2023 Alexander Garver
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

//! # Args
//!
//! Command line arguments for the word counter. Most of the functionality is provided by `clap`,
//! this is just our implementation.

use clap::Parser;

// Allowed for prelude specificlally
#[allow(clippy::missing_docs_in_private_items)]
pub mod prelude {
	pub use super::Args;
	pub use clap::Parser;
}

#[derive(Clone, Debug, Parser)]
pub struct Args {
	/// File or directory paths to count words from
	pub paths: Vec<String>,

	/// String of characters to filter out
	#[clap(short, long, default_value = ".,!?;:#*_[](){}<>\\|/‘’“”\"'")]
	pub filter_chars: String,

	/// String of characters to replace with whitespace
	#[clap(short, long, default_value = "")]
	pub delimit_chars: String,

	/// Count words as case-sensitive. I.e. "Mousie" != "mousie".
	#[clap(short, long, action)]
	pub case_sensitive: bool,
}
