[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#815464: apt: options and arguments don't have consistent behavior



Hi

(I don't understand the first message in the bug, so I refer only to the
second in the hope that the second is a/the example for the "bug")


On Sun, Feb 21, 2016 at 11:20:42PM +0530, Ritesh Raj Sarraf wrote:
> When triggering update with -qqq, it goes ultra quiet.
> 
> 
> rrs@learner:~$ apt -qqq --print-uris update
> 2016-02-21 / 23:19:10 ♒♒♒  ☺    
> rrs@learner:~$ 

And this is a problem exactly why?

You might have noticed that this is the case with apt-get -qq already,
so apt actually takes the liberty of requiring more q's for the same
effect (I never quite liked the "ultra quiet" directly after "slightly
less chatty", but changing that while staying compatible in the code is
hard, so for now I introduced 3 levels only… and the new level-2 is
a small step up from level-1 I found useful for testing…).

I realize now that our recent redesign of the --help messages removed
a very relevant information tidbit for this discussion:
     -qq No output except for errors

We should probably move that to the manpage (although it isn't entirely
correct, but relatively close to reality).

So, works as expected or what exactly do you expect?


Maybe the expectation is that "apt" doesn't have such options as they
aren't really suited for interactive use, but then again I sometimes use
them "interactively" – if only to test things and I don't think there is
a lot of point in discriminating options based on the command.


Oh, and as your message indicates a misunderstanding: "apt" will NEVER
guarantee a stable interface – that is actually the point of introducing
apt in the first place. We have a stable interface which can be used in
scripts with apt-get and co as they will neither disappear nor do they
change default behaviour.¹ "apt" is just another binary which comes with
a slightly different set of default options we deem more reasonable for
interactive usage, but uses the very same code as apt-get and co.

So if you have a script, please continue to use 'apt-get update
--print-uris' in it.


Best regards

David Kalnischkies

¹ within reasonable bounds of course: Bugs are fixed for example.

Attachment: signature.asc
Description: PGP signature


Reply to: