()
| 18 | |
| 19 | |
| 20 | def get_parser(): |
| 21 | parser = argparse.ArgumentParser( |
| 22 | description="add multiple json values to an input or output value", |
| 23 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 24 | ) |
| 25 | parser.add_argument("jsons", type=str, nargs="+", help="json files") |
| 26 | parser.add_argument( |
| 27 | "-i", |
| 28 | "--is-input", |
| 29 | default=True, |
| 30 | type=strtobool, |
| 31 | help="If true, add to input. If false, add to output", |
| 32 | ) |
| 33 | parser.add_argument("--verbose", "-V", default=0, type=int, help="Verbose option") |
| 34 | return parser |
| 35 | |
| 36 | |
| 37 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected
searching dependent graphs…