getArgs -package:directory -package:base-prelude package:base-compat

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