diff options
author | 2013-08-09 12:06:41 +0200 | |
---|---|---|
committer | 2013-08-09 12:06:41 +0200 | |
commit | f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41 (patch) | |
tree | 6116b4c0aeece3d4d7654f5061d1416527a86a64 /roverlay.py | |
parent | roverlay/packagerules: remove TODO note (diff) | |
download | R_overlay-f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41.tar.gz R_overlay-f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41.tar.bz2 R_overlay-f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41.zip |
clean up main script / arg parsing
This commit is a (more or less) complete rewrite of roverlay's arg parsing.
Notable differences/changes:
* fixes name clash issues / "hidden" imports; all modules can now be imported
at the beginning of the file
* usage of a "runtime environment" data object instead of global variables
run_<command>() functions use this environment (passed as first arg) now
* extensible/modular arg parser creation, which allows to write helper scripts
with a reduced set of options
Diffstat (limited to 'roverlay.py')
-rwxr-xr-x | roverlay.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roverlay.py b/roverlay.py index fd1b3e8..a17ff80 100755 --- a/roverlay.py +++ b/roverlay.py @@ -1,11 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # R overlay -- main script -# Copyright (C) 2012 André Erdmann <dywi@mailerd.de> +# Copyright (C) 2012, 2013 André Erdmann <dywi@mailerd.de> # Distributed under the terms of the GNU General Public License; # either version 2 of the License, or (at your option) any later version. -import roverlay.main +import roverlay.defaultscript if __name__ == '__main__': - roverlay.main.main ( False ) + roverlay.defaultscript.main ( False ) |