This supports:
* -h, --help
* --version
* -c cmd
* -i cmd
* file
* -
Plus it's easy to add new options.
Also, now we can do ridiculous things like have projects where
the installation is:
$ curl -s http://example.com/install-hypster-program | hy
The new and improved (import) can handle all cases import-as and
import-from did, so drop the latter two from the language. To do this,
the import builtin had to be changed a little: if there's a single
import statement to return, return it as-is, otherwise return a list of
imports.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Fixes#106
Note: This is implemented by replacing all calls to Python's
builtin "compile" function by calls to hy.importer.compile_,
which adds the "future division" flag. Anyone using "compile"
in future work will have to remember this.