Skip to content

Commit

Permalink
Update help command message, Add -v verbose flags and update subcomma…
Browse files Browse the repository at this point in the history
…nd help message
  • Loading branch information
SwayKh committed Sep 29, 2024
1 parent 26bbd82 commit 9886443
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cmd/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)
}

0 comments on commit 9886443

Please sign in to comment.