From 9abca78afc19ba4e9d907ab2b5f27643d1a40642 Mon Sep 17 00:00:00 2001 From: lotusirous <5105237+lotusirous@users.noreply.github.com> Date: Tue, 13 Dec 2022 15:14:54 +0700 Subject: [PATCH] Improve help menu --- fp.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fp.go b/fp.go index a0097f4..2e42e74 100644 --- a/fp.go +++ b/fp.go @@ -45,15 +45,16 @@ func DigestGroup(hg map[string]hash.Hash, loc string) (map[string]string, error) } func usage() { - fmt.Fprintf(os.Stderr, "usage: fp [file or directory]\n") - fmt.Fprintf(os.Stderr, "Flags:\n") + fmt.Fprintf(os.Stderr, "Usage: fp [file or directory]\n") + fmt.Fprintf(os.Stderr, "\nThis command allows you to view information about a specified file or directory.\n") + fmt.Fprintf(os.Stderr, "\nFlags:\n") flag.PrintDefaults() os.Exit(2) } var ( - flagVerbose = flag.Bool("v", false, `print the file hash in (md5, sha1, sha256)`) - flagClip = flag.Bool("c", false, "copy the path to the clipboard") + flagVerbose = flag.Bool("d", false, `Print detailed file hash information, including the md5, sha1, and sha256 hashes`) + flagClip = flag.Bool("c", false, "Copy the path to the clipboard") ) func main() {