Hi!

On Sun, Jan 22, 2012 at 10:02, Daniel Hartwig <mand...@gmail.com> wrote:
> Patch to add support for clearing configuration items from the command-line:
>
>  $ apt-config -o Foo::Bar=1 -o "#clear Foo::Bar" dump | grep ^Foo

Thanks for the patch!

But i am not sure if this is a good idea. Adding it this way means that the
commandline -o looks more like it would support the same syntax as a
configuration file does, but differences exist:
Statements do (not) end with a semicolon, scope-usage is (dis)allowed,
the syntax to set an option is (not) config::option=value, …
Also a -c for including additional configfiles exist, but if we support #clear
in -o we should properly add #include, too…

All in all i think a --clear(-option) option would be better.
What do you think?


Best regards

David Kalnischkies

P.S.: I am pretty sure -o "#clear …" never worked in apt-get.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to