Handling clear arguments

Summary: Handling arguments of clear command.
Acceptable is one argument or zero when default package is set.