diff options
author | 2013-07-22 14:08:45 +0200 | |
---|---|---|
committer | 2013-07-22 14:08:45 +0200 | |
commit | 80a5617c256f0c650221849a5f0c0d39b3cb2686 (patch) | |
tree | cce106ab7fa6096f2ef80cc60b5dcbdd18f00e9a | |
parent | roverlay/main: use new depres console (diff) | |
download | R_overlay-80a5617c256f0c650221849a5f0c0d39b3cb2686.tar.gz R_overlay-80a5617c256f0c650221849a5f0c0d39b3cb2686.tar.bz2 R_overlay-80a5617c256f0c650221849a5f0c0d39b3cb2686.zip |
roverlay/argutil: remove --run-script entirely
-rw-r--r-- | roverlay/argutil.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/roverlay/argutil.py b/roverlay/argutil.py index df40d34..449b359 100644 --- a/roverlay/argutil.py +++ b/roverlay/argutil.py @@ -6,8 +6,6 @@ """provides arg parsing for the roverlay main script""" -# TODO: remove --run-script here - __all__ = [ 'parse_argv', ] import os @@ -409,18 +407,6 @@ def get_parser ( command_map, default_config_file, default_command='create' ): type=is_gid, ) - arg ( - '--run-script', '-X', default=argparse.SUPPRESS, - metavar="<script>", - help="run a script in roverlay\'s environment and exit afterwards", - type=is_fs_file, - ) - - arg ( - '--script-args', dest='run_script_args', default=argparse.SUPPRESS, - metavar="<args>", - help="args for --run-script", - ) # # TODO # arg ( @@ -496,12 +482,6 @@ def parse_argv ( command_map, **kw ): target_gid = p.target_gid, ) - if given ( 'run_script' ): - extra ['run_script'] = p.run_script - extra ['run_script_args'] = tuple ( - getattr ( p, 'run_script_args', "" ).split ( None ) - ) - # or use shlex for splitting if given ( 'overlay' ): doconf ( p.overlay, 'OVERLAY.dir' ) |