Skip to content

Commit deff276

Browse files
committed
feat: sort countries lexically
1 parent 2cd33a5 commit deff276

File tree

5 files changed

+13258
-13220
lines changed

5 files changed

+13258
-13220
lines changed

Cargo.lock

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

countryfetch/src/args.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use core::error;
33
use clap::Parser;
44

55
use clap::ValueEnum as _;
6-
use colored::Colorize as _;
76

87
use crate::{Country, Location, cache::Cache, country_format::format_country};
98

@@ -116,7 +115,10 @@ impl Args {
116115
/// - Stored invalid 2 letter country code in the cache file
117116
pub async fn print(self) -> Result<(), Box<dyn error::Error>> {
118117
if self.list_countries {
119-
println!("`countryfetch` accepts all of the below values as countries");
118+
println!(
119+
"`countryfetch` accepts any of the below values as an input.
120+
You can either use the country name, or the 2-letter country code. Case-insensitive."
121+
);
120122
for country in gen_country::Country::ALL_COUNTRIES {
121123
if let Some(value) = country.to_possible_value() {
122124
let aliases = value

0 commit comments

Comments
 (0)