diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2018-07-30 10:37:50 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-11-09 00:31:24 -0800 |
commit | b738b7b05b90119ed4ab8b80e56747e367d04f02 (patch) | |
tree | e3388038f07faef7d94ec215610307ff5fb3ff7c /share | |
parent | 31cb2041c334f852b945b421fffb5ffcacc89e1e (diff) | |
download | spack-b738b7b05b90119ed4ab8b80e56747e367d04f02.tar.gz spack-b738b7b05b90119ed4ab8b80e56747e367d04f02.tar.bz2 spack-b738b7b05b90119ed4ab8b80e56747e367d04f02.tar.xz spack-b738b7b05b90119ed4ab8b80e56747e367d04f02.zip |
env: refactor subparsers in env.py
- Instead of one method with all parsers, each subcommand gets two
functions: `setup_<cmd>_parser()` and `environment_<cmd>()`
- the `setup_parser()` and `env()` functions now generate the parser
based on these and a list of subcommands.
- it is now easier to associate the arguments with the subcommand.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions