Skip to content

Commit

Permalink
add: usage in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
just-hms committed Nov 2, 2024
1 parent 7d080d6 commit 925751e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,19 @@ Dow is a command-line tool designed to move the most recent download to a new lo
usage:

```shell
dow
# or
dow destination/path
mv the last downloaded file in the current (or the specified) folder

Usage:
dow [flags]

Examples:
dow
dow -v | xargs -rd '\n' code

Flags:
-h, --help help for dow
-v, --verbose show the name of the moved file
-y, --yes force dow to move the latest file even if it's old
```
## Install
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var rootCmd = &cobra.Command{
Short: `mv the last downloaded file in the current (or the specified) folder`,
Hidden: true,
SilenceUsage: false,
Example: " dow\n dow -v | xargs -rd '\n' code",
Example: " dow\n dow -v | xargs -rd '\\n' code",
Args: cobra.RangeArgs(0, 1),
RunE: func(cmd *cobra.Command, args []string) error {
cmd.SilenceUsage = true
Expand Down

0 comments on commit 925751e

Please sign in to comment.