Accept args from command line.

You can now pass the following arguments:
args[0] - The directory to scan (required).
args[1] - Whether to scan recursively, either 'true' or 'false (default is false).