diff --git a/src/main.go b/src/main.go index 32cb017..44c8c81 100644 --- a/src/main.go +++ b/src/main.go @@ -19,6 +19,14 @@ func main() { case "help", "--help", "-h": HelpMain() + case "add": + HelpAdd() + case "edit": + HelpEdit() + case "copy": + HelpCopy() + case "gen": + HelpGen() case "version", "-v": Version() default: diff --git a/src/printInfo.go b/src/printInfo.go index 4b7cf3d..67f3912 100644 --- a/src/printInfo.go +++ b/src/printInfo.go @@ -32,7 +32,7 @@ This program comes with absolutely no warranty; type "mutn version" for details. password/-p Add a password entry note/-n Add a note entry folder/-f Add a new folder for entries -edit: + edit: rename/relocate/-r Rename or relocate an entry username/-u Change the username of an entry password/-p Change the password of an entry @@ -47,7 +47,51 @@ edit: update/-u Generate a password for an existing entry ` + ansiBold + "Tip 1:" + ansiReset + ` You can quickly read an entry with "mutn /" -` + "\033[1mTip 2:\033[0m" + ` Type "mutn" to view a list of saved entries` + "\n\n") +` + ansiBold + "Tip 2:" + ansiReset + ` Type "mutn" (no arguments/options) to view a list of saved entries +` + ansiBold + "Tip 3:" + ansiReset + " Provide \"add\", \"edit\", \"copy\", or \"gen\" as the only argument to receive more specific help\n\n") +} + +func HelpAdd() { + fmt.Print(ansiBold + "\nUsage:" + ansiReset + ` mutn / add