Skip to content

Commit 88488ed

Browse files
committed
changing name and learning usage.txt
1 parent 8b05b63 commit 88488ed

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

build.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ fn main() -> io::Result<()> {
2626
#![allow(clippy::write_with_newline)]
2727

2828
let usage = include_str!("src/usage.txt");
29-
let tagline = "dog \\1;32m\\0m command-line DNS client";
29+
let tagline = "doge \\1;32m\\0m command-line DNS client";
3030
let url = "https://dns.lookup.dog/";
3131

3232
let ver =
3333
if is_debug_build() {
34-
format!("{}\nv{} \\1;31m(pre-release debug build!)\\0m\n\\1;4;34m{}\\0m", tagline, version_string(), url)
34+
format!("{}\nv{} \\1;31m(beta debug build!)\\0m\n\\1;4;34m{}\\0m", tagline, version_string(), url)
3535
}
3636
else if is_development_version() {
37-
format!("{}\nv{} [{}] built on {} \\1;31m(pre-release!)\\0m\n\\1;4;34m{}\\0m", tagline, version_string(), git_hash(), build_date(), url)
37+
format!("{}\nv{} [{}] built on {} \\1;31m(beta-release!)\\0m\n\\1;4;34m{}\\0m", tagline, version_string(), git_hash(), build_date(), url)
3838
}
3939
else {
4040
format!("{}\nv{}\n\\1;4;34m{}\\0m", tagline, version_string(), url)
@@ -100,7 +100,7 @@ fn git_hash() -> String {
100100
/// Both weekly releases and actual releases are --release releases,
101101
/// but actual releases will have a proper version number.
102102
fn is_development_version() -> bool {
103-
cargo_version().ends_with("-pre") || env::var("PROFILE").unwrap() == "debug"
103+
cargo_version().ends_with("-beta") || env::var("PROFILE").unwrap() == "debug"
104104
}
105105

106106
/// Whether we are building in debug mode.

src/usage.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
\4mUsage:\0m
2-
\1mdog\0m \1;33m[OPTIONS]\0m [--] \32m<arguments>\0m
1+
\4mUsage󰇙\0m
2+
\1mdoge\0m \1;33m[OPTIONS]\0m [--] \32m<arguments>\0m
33

44
\4mExamples:\0m
5-
\1mdog\0m \32mexample.net\0m Query a domain using default settings
6-
\1mdog\0m \32mexample.net MX\0m ...looking up MX records instead
7-
\1mdog\0m \32mexample.net MX @1.1.1.1\0m ...using a specific nameserver instead
8-
\1mdog\0m \32mexample.net MX @1.1.1.1\0m \1;33m-T\0m ...using TCP rather than UDP
9-
\1mdog\0m \1;33m-q\0m \33mexample.net\0m \1;33m-t\0m \33mMX\0m \1;33m-n\0m \33m1.1.1.1\0m \1;33m-T\0m As above, but using explicit arguments
5+
\1mdoge\0m \36mexample.net\0m Query a domain using default settings
6+
\1mdoge\0m \36mexample.net\0m \32mMX\0m ...looking up MX records instead
7+
\1mdoge\0m \36mexample.net\0m \32mMX\0m \36m@1.1.1.1\0m ...using a specific nameserver instead
8+
\1mdoge\0m \36mexample.net\0m \32mMX\0m \36m@1.1.1.1\0m \1;33m-T\0m ...using TCP rather than UDP
9+
\1mdoge\0m \1;33m-q\0m \33mexample.net\0m \1;33m-t\0m \33mMX\0m \1;33m-n\0m \33m1.1.1.1\0m \1;33m-T\0m As above, but using explicit arguments
1010

1111
\4mQuery options:\0m
1212
\32m<arguments>\0m Human-readable host names, nameservers, types, or classes

0 commit comments

Comments
 (0)