summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cmndline.cc
AgeCommit message (Collapse)Author
2015-11-19support setting empty values (sanely) & removing support forDavid Kalnischkies
space-gapping: '-o option= value' That is a very old feature (straight from 1998), but it is super surprising if you try setting empty values and instead get error messages or a non-empty value as the next parameter is treated as the value – which could have been empty, so if for some reason you need a compatible way of setting an empty value try: '-o option="" ""'. I can only guess that the idea was to support '-o option value', but we survived 17 years without it, we will do fine in the future I guess. Similar is the case for '-t= testing' even through '-t testing' existed before and the code even tried to detect mistakes like '-t= -b' … all gone now. Technically that is as its removing a feature replacing it with another a major interface break. In practice I really hope for my and their sanity that nobody was using this; but if for some reaon you do: Remove the space and be done. I found the patch and the bugreport actually only after the fact, but its reassuring that others are puzzled by this as well and hence a thanks is in perfect order here as the patch is practical identical [expect that this one here adds tests and other bonus items]. Thanks: Daniel Hartwig for initial patch. Closes: 693092
2015-11-04move apts cmdline helper type into -privateDavid Kalnischkies
Its not as simple as I initially thought to abstract this enough to make it globally usable, so lets not pollute global namespace with this for now. Git-Dch: Ignore
2015-11-04deduplicate main methodsDavid Kalnischkies
All mains pretty much do the same thing, so lets try a little harder to move the common parts into -private to have the real differences more visible. Git-Dch: Ignore
2015-11-04split up help messages for simpler reuseDavid Kalnischkies
That is one huge commit with busy work only: Help messages used to be one big translateable string, which is a pain for translators and hard to reuse for us. This change there 'explodes' this single string into new string for each documented string trying hard to split up the translated messages as well. This actually restores many translations as previously adding a single command made all of the bug message fuzzy. The splitup also highlighted that its easy to forget a line, duplicate one and similar stuff. Git-Dch: Ignore
2015-08-14Also add 'in combination with the other options.' to another errorJulian Andres Klode
Gbp-Dch: ignore
2015-08-14Say "in combination with the other options" if an option is not understoodJulian Andres Klode
Closes: #762758
2014-11-09streamline display of --help in all toolsDavid Kalnischkies
By convention, if I run a tool with --help or --version I expect it to exit successfully with the usage, while if I do call it wrong (like without any parameters) I expect the usage message shown with a non-zero exit.
2014-09-28allow options between command and -- on commandlineDavid Kalnischkies
This used to work before we implemented a stricter commandline parser and e.g. the dd-schroot-cmd command constructs commandlines like this. Reported-By: Helmut Grohne
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies
Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
2014-02-22Fix typos in documentation (codespell)Michael Vogt
2013-08-22Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt
Conflicts: apt-pkg/tagfile.h
2013-08-12squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt
experimental
2013-08-12some more coverity fixesMichael Vogt
2012-06-09fix segfault with empty LongOpt in --no-* branchDavid Kalnischkies
2012-06-09* apt-pkg/contrib/cmdline.cc:Daniel Hartwig
- apply patch from Daniel Hartwig to fix a segfault in case the LongOpt is empty (Closes: #676331)
2011-10-30merge with my debian-sid branchDavid Kalnischkies
2011-09-21convert a few for-loop char finds to proper strchr and memchrDavid Kalnischkies
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2010-05-31* apt-pkg/contrib/cmdline.cc:David Kalnischkies
- fix segfault in SaveInConfig caused by writing over char[] sizes
2010-03-12* apt-pkg/deb/dpkgpm.cc:David Kalnischkies
- if available store the Commandline in the history * apt-pkg/contrib/cmndline.cc: - save Commandline in Commandline::AsString for logging
2008-10-03Applying #298821 patch for further arbitary typosLuca Bruno
2007-06-08* remove all the remaining #pragma implementationMichael Vogt
2004-09-20Typo fixes.Arch Librarian
Author: doogie Date: 2003-02-10 01:40:58 GMT Typo fixes.
2004-09-20Some more g++-3.2 fixes.Arch Librarian
Author: doogie Date: 2002-11-11 06:55:50 GMT Some more g++-3.2 fixes.
2004-09-20PD licenseArch Librarian
Author: jgg Date: 2002-09-14 05:28:38 GMT PD license
2004-09-20Fixed -- argument bugArch Librarian
Author: jgg Date: 2001-06-09 22:39:48 GMT Fixed -- argument bug
2004-09-20Join with aliencodeArch Librarian
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20Changed handling of the -q optionArch Librarian
Author: jgg Date: 1999-05-14 02:57:48 GMT Changed handling of the -q option
2004-09-20Moved strutl.hArch Librarian
Author: jgg Date: 1999-01-27 02:48:52 GMT Moved strutl.h
2004-09-20Dsync mergeArch Librarian
Author: jgg Date: 1999-01-18 06:20:07 GMT Dsync merge
2004-09-20Release supportArch Librarian
Author: jgg Date: 1998-12-14 02:23:46 GMT Release support
2004-09-20More CD supportArch Librarian
Author: jgg Date: 1998-11-25 23:54:06 GMT More CD support
2004-09-20Fixed long option parsingArch Librarian
Author: jgg Date: 1998-10-24 20:14:34 GMT Fixed long option parsing
2004-09-20Start on acquire stuffArch Librarian
Author: jgg Date: 1998-10-20 02:39:12 GMT Start on acquire stuff
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-10-08 04:54:58 GMT Sync
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-09-26 05:34:18 GMT Sync
2004-09-20SyncArch Librarian
Author: jgg Date: 1998-09-22 05:30:24 GMT Sync