()
| 972 | |
| 973 | |
| 974 | def _parser(): |
| 975 | parser = argparse.ArgumentParser() |
| 976 | parser.add_argument( |
| 977 | "--next-release", help="Return the next release", action="store_true" |
| 978 | ) |
| 979 | parser.add_argument("--parse", help="Parse the passed string as a salt version") |
| 980 | # When pip installing we pass in other args to this script. |
| 981 | # This allows us to catch those args but not use them |
| 982 | parser.add_argument("unknown", nargs=argparse.REMAINDER) |
| 983 | return parser.parse_args() |
| 984 | |
| 985 | |
| 986 | if __name__ == "__main__": |
no test coverage detected