getArgs -package:directory -package:base-compat package:basement

Returns a list of the program's command line arguments (not including the program name).