Skip to content

Commit 6e5e7e8

Browse files
Added some comments to explain the sepration in format for parser arguments
1 parent 93f792d commit 6e5e7e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolchain/mfc/args.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def parse(config):
1717
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
1818
)
1919

20+
# Here are all of the parser arguments that call fuctions in other python files
2021
parsers = parser.add_subparsers(dest="command")
2122
run = parsers.add_parser(name="run", help="Run a case with MFC.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
2223
test = parsers.add_parser(name="test", help="Run MFC's test suite.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
@@ -28,6 +29,7 @@ def parse(config):
2829
count_diff = parsers.add_parser(name="count_diff", help="Count LOC in MFC.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
2930
packer = parsers.add_parser(name="packer", help="Packer utility (pack/unpack/compare).", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
3031

32+
# These parser arguments all call BASH scripts, and they only exist so that they show up in the help message
3133
parsers.add_parser(name="load", help="Loads the MFC environment with source.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
3234
parsers.add_parser(name="lint", help="Lints all code after editing.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
3335
parsers.add_parser(name="format", help="Formats all code after editing.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)

0 commit comments

Comments
 (0)