MCPcopy Index your code
hub / github.com/saltstack/salt / _parser

Function _parser

salt/version.py:974–983  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

972
973
974def _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
986if __name__ == "__main__":

Callers 1

version.pyFile · 0.70

Calls 2

add_argumentMethod · 0.80
parse_argsMethod · 0.45

Tested by

no test coverage detected