Skip to content

Commit 9abca78

Browse files
committed
Improve help menu
1 parent 801754a commit 9abca78

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

fp.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ func DigestGroup(hg map[string]hash.Hash, loc string) (map[string]string, error)
4545
}
4646

4747
func usage() {
48-
fmt.Fprintf(os.Stderr, "usage: fp [file or directory]\n")
49-
fmt.Fprintf(os.Stderr, "Flags:\n")
48+
fmt.Fprintf(os.Stderr, "Usage: fp [file or directory]\n")
49+
fmt.Fprintf(os.Stderr, "\nThis command allows you to view information about a specified file or directory.\n")
50+
fmt.Fprintf(os.Stderr, "\nFlags:\n")
5051
flag.PrintDefaults()
5152
os.Exit(2)
5253
}
5354

5455
var (
55-
flagVerbose = flag.Bool("v", false, `print the file hash in (md5, sha1, sha256)`)
56-
flagClip = flag.Bool("c", false, "copy the path to the clipboard")
56+
flagVerbose = flag.Bool("d", false, `Print detailed file hash information, including the md5, sha1, and sha256 hashes`)
57+
flagClip = flag.Bool("c", false, "Copy the path to the clipboard")
5758
)
5859

5960
func main() {

0 commit comments

Comments
 (0)