Skip to content

Commit

Permalink
improve: Adjust command example when nothing to be done according to …
Browse files Browse the repository at this point in the history
…option used by user
  • Loading branch information
itislu committed May 17, 2024
1 parent 2b0cf19 commit b2ee0d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 42free.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1381,9 +1381,14 @@ need_delim=false

# Check if nothing to be done
if [[ $args_amount -eq 0 ]]; then
if $restore; then
example="42free -r /path/to/directory/in/sgoinfre LinkInCurDir"
else
example="42free /path/to/large/directory LargeFileInCurDir"
fi
pretty_print "${bold}Nothing to be done.${reset}"
pretty_print "You can specify which directories or files you would like to move to $target_name with arguments."
pretty_print "Example: '${bold}42free /path/to/large/directory LargeFileInCurDir${reset}'"
pretty_print "Example: '${bold}$example${reset}'"
pretty_print "Run '42free --help' for more information."
fi

Expand Down

0 comments on commit b2ee0d4

Please sign in to comment.