| 149 | |
| 150 | |
| 151 | def parse_args() -> argparse.Namespace: |
| 152 | parser = argparse.ArgumentParser( |
| 153 | description="Prints differences between git branches." |
| 154 | ) |
| 155 | parser.add_argument( |
| 156 | "--main", |
| 157 | default="origin/main", |
| 158 | type=str, |
| 159 | help="The name of the main (source) branch to pick commits from.", |
| 160 | ) |
| 161 | parser.add_argument( |
| 162 | "--release", |
| 163 | type=str, |
| 164 | help="The name of the release (destination) branch to pick commits onto, " |
| 165 | + "ideally with the 'origin/' prefix", |
| 166 | ) |
| 167 | parser.add_argument( |
| 168 | "-v", |
| 169 | "--verbose", |
| 170 | action="count", |
| 171 | default=0, |
| 172 | help="Log extra output. Specify more times (-vv) for more output.", |
| 173 | ) |
| 174 | return parser.parse_args() |
| 175 | |
| 176 | |
| 177 | def main(): |