mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Rename help method
This commit is contained in:
parent
de38334e62
commit
ddf315d71a
1 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
help-panel() {
|
||||
echo -e "-p [post type] Delete all posts"
|
||||
echo -e "\tExample: -p shop_order,product"
|
||||
echo -e "-l [wp-content path] Delete all logs"
|
||||
echo -e "\tExample: -l uploads/wc-logs"
|
||||
show-help() {
|
||||
echo -e "\nDelete all posts -p [post type]"
|
||||
echo -e "\tExample: ddev wp-cleanup -p shop_order,product"
|
||||
echo -e "\nDelete all logs -l [wp-content path]"
|
||||
echo -e "\tExample: ddev wp-cleanup -l uploads/wc-logs\n"
|
||||
}
|
||||
|
||||
delete-posts() {
|
||||
|
@ -29,10 +29,10 @@ while getopts "p:l:h" arg; do
|
|||
delete-logs $OPTARG
|
||||
param_counter+=1
|
||||
;;
|
||||
h) help-panel ;;
|
||||
h) show-help ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ $param_counter -eq 0 ]; then
|
||||
help-panel
|
||||
show-help
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue