refactor(app): rename the preloader function

This commit is contained in:
Orhun Parmaksız 2021-12-18 14:15:27 +03:00
parent c803fe4476
commit 251327519b
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
2 changed files with 2 additions and 2 deletions

View file

@ -188,7 +188,7 @@ impl<'a, Output: Write> App<'a, Output> {
}
/// Processes the parameters in the given file.
pub fn preload_values(&mut self, file: String) -> Result<()> {
pub fn preload_from_file(&mut self, file: String) -> Result<()> {
let path = PathBuf::from(file);
if !path.exists() {
eprintln!(

View file

@ -39,7 +39,7 @@ pub fn run(args: Args) -> Result<()> {
}
} else if args.preload_files {
for file in args.values {
app.preload_values(file)?;
app.preload_from_file(file)?;
}
} else {
for param in args.values {