Skip to content

Commit d81c666

Browse files
committed
Update versioning and add help and version display functions
- Updated the version string from "v0.1" to "v0.0.1" for clarity and tracking. - Added `help` function to display usage information. - Added `version` function to print the application name, version, and author information.
1 parent c7c97ea commit d81c666

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ref_command.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
pub const NAME: &str = "ld";
3-
pub const VERSION: &str = " v0.1";
3+
pub const VERSION: &str = "v0.0.1";
44
pub const HELP: &str = r#"Usage:
55
fac <option> <directory>
66
@@ -14,3 +14,12 @@ pub const HELP: &str = r#"Usage:
1414
[--all, -a]
1515
include hidden files
1616
"#;
17+
18+
pub fn help() {
19+
println!("{}", &HELP)
20+
}
21+
22+
pub fn version() {
23+
println!("{} ({})", &NAME, &VERSION);
24+
println!("author: Arki (github: @Arkeasz)");
25+
}

0 commit comments

Comments
 (0)