Chapel: Consistent kwarg-parsing in mason

Created on 26 Feb 2020  路  8Comments  路  Source: chapel-lang/chapel

For any mason flags that accept a value (what I'm calling a keyword-arg (kwarg)), we should consistently:

  1. support --flag value style
  2. support --flag=value style
  3. Include the value placeholder in the help output with the format: --flag <value>

Examples include:

mason build --example <example>
mason run --example <example>
mason test --setComm <comm>
mason external find -t <tags>
Tools easy / straightforward Feature Request

All 8 comments

@ben-albrecht Since I'm already working on a similar issue, I'll be taking this along with #14955

Thanks @ankingcodes. If possible, it would be best if you were able to separate fixing all mason kwargs (this issue) from adding --moduleName in 2 different PRs.

Stumbled across https://github.com/chapel-lang/chapel/issues/14990 while testing these out.

@ben-albrecht Got it !

@ben-albrecht can we add mason search --show=packageName to that list ?

--show is bool flag for mason search still. It requires the search query to return 1 package to work though.

@ben-albrecht We can close this now.
For archival purposes, mason test arg parsing was refactored to select style in this issue.

Was this page helpful?
0 / 5 - 0 ratings