all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#60564] [PATCH] scripts: refresh: Add -T option.
@ 2023-01-05  1:10 jgart via Guix-patches via
  2023-01-05  1:35 ` [bug#60564] Probably a lost battle Felix Lechner via Guix-patches via
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: jgart via Guix-patches via @ 2023-01-05  1:10 UTC (permalink / raw)
  To: 60564; +Cc: jgart

* doc/guix.texi (Invoking guix refresh): Document the -T option.
* guix/scripts/refresh.scm (%options): Add the -T flag.
---
 doc/guix.texi            | 1 +
 guix/scripts/refresh.scm | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 96b4675a01..e3ecf1f148 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -14197,6 +14197,7 @@ for compatibility with an upgraded @code{flex} package.
 @table @code
 
 @item --list-transitive
+@item --T
 List all the packages which one or more packages depend upon.
 
 @example
diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
index 6498d73c2b..6b633840e0 100644
--- a/guix/scripts/refresh.scm
+++ b/guix/scripts/refresh.scm
@@ -101,7 +101,7 @@ (define %options
         (option '(#\r "recursive") #f #f
                 (lambda (opt name arg result)
                   (alist-cons 'recursive? #t result)))
-        (option '("list-transitive") #f #f
+        (option '(#\T "list-transitive") #f #f
                 (lambda (opt name arg result)
                   (alist-cons 'list-transitive? #t result)))
 
@@ -159,7 +159,7 @@ (define (show-help)
   (display (G_ "
   -r, --recursive        check the PACKAGE and its inputs for upgrades"))
   (display (G_ "
-      --list-transitive  list all the packages that PACKAGE depends on"))
+  -T, --list-transitive  list all the packages that PACKAGE depends on"))
   (newline)
   (display (G_ "
       --keyring=FILE     use FILE as the keyring of upstream OpenPGP keys"))
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#60564] Probably a lost battle
  2023-01-05  1:10 [bug#60564] [PATCH] scripts: refresh: Add -T option jgart via Guix-patches via
@ 2023-01-05  1:35 ` Felix Lechner via Guix-patches via
  2023-01-11 19:43 ` [bug#60564] [PATCH] scripts: refresh: Add -T option Maxim Cournoyer
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Felix Lechner via Guix-patches via @ 2023-01-05  1:35 UTC (permalink / raw)
  To: 60564; +Cc: jgart

Hi,

Would the meaning of that option be more accessible to people without a
mathematics background, if it were called

  --list-prerequisites   ?

Kind regards,
Felix Lechner




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#60564] [PATCH] scripts: refresh: Add -T option.
  2023-01-05  1:10 [bug#60564] [PATCH] scripts: refresh: Add -T option jgart via Guix-patches via
  2023-01-05  1:35 ` [bug#60564] Probably a lost battle Felix Lechner via Guix-patches via
@ 2023-01-11 19:43 ` Maxim Cournoyer
  2023-03-03  8:56   ` Josselin Poiret via Guix-patches via
  2023-03-03 16:43   ` jgart via Guix-patches via
  2023-03-03 16:21 ` jgart via Guix-patches via
  2023-03-21 18:56 ` bug#60564: " Maxim Cournoyer
  3 siblings, 2 replies; 9+ messages in thread
From: Maxim Cournoyer @ 2023-01-11 19:43 UTC (permalink / raw)
  To: jgart; +Cc: 60564

Hi,

jgart <jgart@dismail.de> writes:

> * doc/guix.texi (Invoking guix refresh): Document the -T option.
> * guix/scripts/refresh.scm (%options): Add the -T flag.
> ---
>  doc/guix.texi            | 1 +
>  guix/scripts/refresh.scm | 4 ++--
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/doc/guix.texi b/doc/guix.texi
> index 96b4675a01..e3ecf1f148 100644
> --- a/doc/guix.texi
> +++ b/doc/guix.texi
> @@ -14197,6 +14197,7 @@ for compatibility with an upgraded @code{flex} package.
>  @table @code
>  
>  @item --list-transitive
> +@item --T

The above should be -T, right?

I wonder if this option is common enough to need a dedicated short
switch?  I use it sparingly myself; typically I use '-l' to know which
packages I'd impact.

The rest looks OK.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#60564] [PATCH] scripts: refresh: Add -T option.
  2023-01-11 19:43 ` [bug#60564] [PATCH] scripts: refresh: Add -T option Maxim Cournoyer
@ 2023-03-03  8:56   ` Josselin Poiret via Guix-patches via
  2023-03-03 16:43   ` jgart via Guix-patches via
  1 sibling, 0 replies; 9+ messages in thread
From: Josselin Poiret via Guix-patches via @ 2023-03-03  8:56 UTC (permalink / raw)
  To: Maxim Cournoyer, jgart; +Cc: 60564

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]

Hi everyone,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> The above should be -T, right?
>
> I wonder if this option is common enough to need a dedicated short
> switch?  I use it sparingly myself; typically I use '-l' to know which
> packages I'd impact.
>
> The rest looks OK.

There hasn't been any activity on this: is this still interesting to you
jgart?  If not, we can probably close this.

Best,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#60564] [PATCH] scripts: refresh: Add -T option.
  2023-01-05  1:10 [bug#60564] [PATCH] scripts: refresh: Add -T option jgart via Guix-patches via
  2023-01-05  1:35 ` [bug#60564] Probably a lost battle Felix Lechner via Guix-patches via
  2023-01-11 19:43 ` [bug#60564] [PATCH] scripts: refresh: Add -T option Maxim Cournoyer
@ 2023-03-03 16:21 ` jgart via Guix-patches via
  2023-03-04  3:30   ` Maxim Cournoyer
  2023-03-21 18:56 ` bug#60564: " Maxim Cournoyer
  3 siblings, 1 reply; 9+ messages in thread
From: jgart via Guix-patches via @ 2023-03-03 16:21 UTC (permalink / raw)
  To: 60564; +Cc: Josselin Poiret, jgart, Maxim Cournoyer

* doc/guix.texi (Invoking guix refresh): Document the -T option.
* guix/scripts/refresh.scm (%options): Add the -T flag.
---

Hi Josselin and Maxim

> I wonder if this option is common enough to need a dedicated short
> switch?

I would probably use the option more if it had a short option ;()

I think that it is useful. What would be the negative of adding the short option for it?

all best,

jgart

 doc/guix.texi            | 1 +
 guix/scripts/refresh.scm | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 6ff525d0ff..25bbd75f04 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -14327,6 +14327,7 @@ for compatibility with an upgraded @code{flex} package.
 @table @code
 
 @item --list-transitive
+@item -T
 List all the packages which one or more packages depend upon.
 
 @example
diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
index 6498d73c2b..6b633840e0 100644
--- a/guix/scripts/refresh.scm
+++ b/guix/scripts/refresh.scm
@@ -101,7 +101,7 @@ (define %options
         (option '(#\r "recursive") #f #f
                 (lambda (opt name arg result)
                   (alist-cons 'recursive? #t result)))
-        (option '("list-transitive") #f #f
+        (option '(#\T "list-transitive") #f #f
                 (lambda (opt name arg result)
                   (alist-cons 'list-transitive? #t result)))
 
@@ -159,7 +159,7 @@ (define (show-help)
   (display (G_ "
   -r, --recursive        check the PACKAGE and its inputs for upgrades"))
   (display (G_ "
-      --list-transitive  list all the packages that PACKAGE depends on"))
+  -T, --list-transitive  list all the packages that PACKAGE depends on"))
   (newline)
   (display (G_ "
       --keyring=FILE     use FILE as the keyring of upstream OpenPGP keys"))
-- 
2.39.1





^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#60564] [PATCH] scripts: refresh: Add -T option.
  2023-01-11 19:43 ` [bug#60564] [PATCH] scripts: refresh: Add -T option Maxim Cournoyer
  2023-03-03  8:56   ` Josselin Poiret via Guix-patches via
@ 2023-03-03 16:43   ` jgart via Guix-patches via
  1 sibling, 0 replies; 9+ messages in thread
From: jgart via Guix-patches via @ 2023-03-03 16:43 UTC (permalink / raw)
  To: Josselin Poiret, Maxim Cournoyer; +Cc: 60564

I forgot to mention that the last patch I sent is v2 fixing the typo that Maxim pointed out.

all best,

jgart




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#60564] [PATCH] scripts: refresh: Add -T option.
  2023-03-03 16:21 ` jgart via Guix-patches via
@ 2023-03-04  3:30   ` Maxim Cournoyer
  2023-03-04 10:51     ` Josselin Poiret via Guix-patches via
  0 siblings, 1 reply; 9+ messages in thread
From: Maxim Cournoyer @ 2023-03-04  3:30 UTC (permalink / raw)
  To: jgart; +Cc: Josselin Poiret, 60564

Hi jgart,

jgart <jgart@dismail.de> writes:

> * doc/guix.texi (Invoking guix refresh): Document the -T option.
> * guix/scripts/refresh.scm (%options): Add the -T flag.
> ---
>
> Hi Josselin and Maxim
>
>> I wonder if this option is common enough to need a dedicated short
>> switch?
>
> I would probably use the option more if it had a short option ;()
>
> I think that it is useful. What would be the negative of adding the short option for it?

Nothing immediately, but we'd have to honor T forever as it'd be part of
the public CLI, loosing that letter for something more useful that may
yet to appear.

Probably an overblown concern, to be honest, eh.

I'll see what Josselin says about it, otherwise I'll push it soon.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#60564] [PATCH] scripts: refresh: Add -T option.
  2023-03-04  3:30   ` Maxim Cournoyer
@ 2023-03-04 10:51     ` Josselin Poiret via Guix-patches via
  0 siblings, 0 replies; 9+ messages in thread
From: Josselin Poiret via Guix-patches via @ 2023-03-04 10:51 UTC (permalink / raw)
  To: Maxim Cournoyer, jgart; +Cc: 60564

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

Hi jgart and Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Nothing immediately, but we'd have to honor T forever as it'd be part of
> the public CLI, loosing that letter for something more useful that may
> yet to appear.
>
> Probably an overblown concern, to be honest, eh.
>
> I'll see what Josselin says about it, otherwise I'll push it soon.

I'm on the fence as well, it doesn't seem like something you would use
very often, compared to eg. `-l` or `-u`, especially if you mention that
you would use the option more often if this was implemented (I'd expect
more of a "I use it all the time but typing it is annoying"). `guix
size` and `guix graph` are the more useful commands imho. What do you
use it for specifically (maybe that would help us understand the
use-case a bit more)?

At the same time, it's probably fine, we don't have many options for
`guix refresh` and it's not like dozens of them will get added overnight
(and they maybe don't deserve a short argument either).  I'll leave it
in your hands 🤠.

Best,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#60564: [PATCH] scripts: refresh: Add -T option.
  2023-01-05  1:10 [bug#60564] [PATCH] scripts: refresh: Add -T option jgart via Guix-patches via
                   ` (2 preceding siblings ...)
  2023-03-03 16:21 ` jgart via Guix-patches via
@ 2023-03-21 18:56 ` Maxim Cournoyer
  3 siblings, 0 replies; 9+ messages in thread
From: Maxim Cournoyer @ 2023-03-21 18:56 UTC (permalink / raw)
  To: jgart; +Cc: 60564-done

Hi,

jgart <jgart@dismail.de> writes:

> * doc/guix.texi (Invoking guix refresh): Document the -T option.
> * guix/scripts/refresh.scm (%options): Add the -T flag.
> ---
>  doc/guix.texi            | 1 +
>  guix/scripts/refresh.scm | 4 ++--
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/doc/guix.texi b/doc/guix.texi
> index 96b4675a01..e3ecf1f148 100644
> --- a/doc/guix.texi
> +++ b/doc/guix.texi
> @@ -14197,6 +14197,7 @@ for compatibility with an upgraded @code{flex} package.
>  @table @code
>  
>  @item --list-transitive
> +@item --T
>  List all the packages which one or more packages depend upon.

Fixed to use itemx:

--8<---------------cut here---------------start------------->8---
modified   doc/guix.texi
@@ -14324,7 +14324,7 @@ for compatibility with an upgraded @code{flex} package.
 @table @code
 
 @item --list-transitive
-@item --T
+@itemx --T
 List all the packages which one or more packages depend upon.
 
 @example
--8<---------------cut here---------------end--------------->8---

>  @example
> diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm
> index 6498d73c2b..6b633840e0 100644
> --- a/guix/scripts/refresh.scm
> +++ b/guix/scripts/refresh.scm
> @@ -101,7 +101,7 @@ (define %options
>          (option '(#\r "recursive") #f #f
>                  (lambda (opt name arg result)
>                    (alist-cons 'recursive? #t result)))
> -        (option '("list-transitive") #f #f
> +        (option '(#\T "list-transitive") #f #f
>                  (lambda (opt name arg result)
>                    (alist-cons 'list-transitive? #t result)))
>  
> @@ -159,7 +159,7 @@ (define (show-help)
>    (display (G_ "
>    -r, --recursive        check the PACKAGE and its inputs for upgrades"))
>    (display (G_ "
> -      --list-transitive  list all the packages that PACKAGE depends on"))
> +  -T, --list-transitive  list all the packages that PACKAGE depends on"))
>    (newline)
>    (display (G_ "
>        --keyring=FILE     use FILE as the keyring of upstream OpenPGP keys"))

And installed it.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-03-21 18:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05  1:10 [bug#60564] [PATCH] scripts: refresh: Add -T option jgart via Guix-patches via
2023-01-05  1:35 ` [bug#60564] Probably a lost battle Felix Lechner via Guix-patches via
2023-01-11 19:43 ` [bug#60564] [PATCH] scripts: refresh: Add -T option Maxim Cournoyer
2023-03-03  8:56   ` Josselin Poiret via Guix-patches via
2023-03-03 16:43   ` jgart via Guix-patches via
2023-03-03 16:21 ` jgart via Guix-patches via
2023-03-04  3:30   ` Maxim Cournoyer
2023-03-04 10:51     ` Josselin Poiret via Guix-patches via
2023-03-21 18:56 ` bug#60564: " Maxim Cournoyer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.