Change History (2)

pkg-apt: "apt remove" with no parameters does not return an error →
pkg-apt: "apt [command]" with no parameters does not return an error or message

The problem is actually more generalised, most of the commands do not return an error or usage message if the required parameter(s) are not there. This might be a good opportunity to look into using optparse instead of getopt (c.f. ​Stack Overflow: parse command line). This would also deal with # FIXME: list only usable command line parameters, not all functions in def usage at the same time.

(In [1188]) close #53. All commands should now exit gracefully with msg if incomplete.

def_version(): report version of named package instead of all versions; moved reporting of all to def_versions(). There is overlap between this and def_list() which also reports all versions, as well as possible upgrades. FIXME: remove versions from def_list? would allow easier piping.