Opened 15 years ago

Closed 12 years ago

#53 closed defect (fixed)

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

Reported by: maphew Owned by: maphew
Priority: major Component: Installer
Version: Keywords: apt
Cc:

Description

apt remove

returns nothing, when it should return something like "remove what? Use 'apt list' to see currently installed packages."

Change History (2)

comment:1 by maphew, 15 years ago

Status: newassigned
Summary: pkg-apt: "apt remove" with no parameters does not return an errorpkg-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.

comment:2 by maphew, 12 years ago

Resolution: fixed
Status: assignedclosed

(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.

Note: See TracTickets for help on using tickets.