Ticket #53 (assigned defect)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by maphew

  • status changed from new to assigned
  • summary changed from pkg-apt: "apt remove" with no parameters does not return an error to 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.

Note: See TracTickets for help on using tickets.