From 98864430bf295b638e7637530e3cb35a3b2f237a Mon Sep 17 00:00:00 2001 From: SwayKh Date: Mon, 30 Sep 2024 00:07:56 +0530 Subject: [PATCH] Update help command message, Add -v verbose flags and update subcommand help message --- cmd/help.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cmd/help.go b/cmd/help.go index 344dca7..27bbaf0 100644 --- a/cmd/help.go +++ b/cmd/help.go @@ -3,16 +3,13 @@ package cmd import "github.com/SwayKh/linksym/pkg/logger" func Help() { - usage := ` Usage: linksym [subcommand] [flags] + usage := ` Usage: linksym [flags] [subcommand] Subcommands: - init [flags] + init Initialize the linksym configuration file (.linksym.yaml) to hold records of symlinks. - Flags: - -u, --update - Update the init_directory field in the .linksym.yaml configuration file. - add [path] [(optional) destination] + add [path] [destination (Optional) ] Create a symlink for the specified path. Optionally define a destination for the symlink. remove [path] @@ -21,9 +18,14 @@ Subcommands: source Create all symlinks described in the .linksym.yaml configuration file. + update + Update the init_directory field and record names in the .linksym.yaml configuration file. + Flags: -h, --help - Display this help message.` + Display this help message. + -v + Show verbose output.` logger.Log(usage) }