[pacman-dev,1/7] pacman: indicate --overwrite takes a glob

Message ID 20210116072101.38203-1-andrew.gregory.8@gmail.com
State New
Headers show
Series [pacman-dev,1/7] pacman: indicate --overwrite takes a glob | expand

Commit Message

Andrew Gregory Jan. 16, 2021, 7:20 a.m. UTC
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
---
 src/pacman/pacman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Allan McRae Jan. 19, 2021, 2:03 a.m. UTC | #1
On 16/1/21 5:20 pm, Andrew Gregory wrote:
> Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
> ---
>  src/pacman/pacman.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
> index 7b19162c..b39f5031 100644
> --- a/src/pacman/pacman.c
> +++ b/src/pacman/pacman.c
> @@ -189,7 +189,7 @@ static void usage(int op, const char * const myname)
>  		switch(op) {
>  			case PM_OP_SYNC:
>  			case PM_OP_UPGRADE:
> -				addlist(_("      --overwrite <path>\n"
> +				addlist(_("      --overwrite <glob>\n"

Ack - brings us inline with the man page.

>  				          "                       overwrite conflicting files (can be used more than once)\n"));
>  				addlist(_("      --asdeps         install packages as non-explicitly installed\n"));
>  				addlist(_("      --asexplicit     install packages as explicitly installed\n"));
>

Patch

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 7b19162c..b39f5031 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -189,7 +189,7 @@  static void usage(int op, const char * const myname)
 		switch(op) {
 			case PM_OP_SYNC:
 			case PM_OP_UPGRADE:
-				addlist(_("      --overwrite <path>\n"
+				addlist(_("      --overwrite <glob>\n"
 				          "                       overwrite conflicting files (can be used more than once)\n"));
 				addlist(_("      --asdeps         install packages as non-explicitly installed\n"));
 				addlist(_("      --asexplicit     install packages as explicitly installed\n"));