project/qemu: Outline code to construct argparser

The argparser was constructed in main before. It is now constructed
in a separate function such that other scripts can import this script
and reuse its command line interface without duplicating the parser.

Test: build.py qemu-generic-arm64-test-debug
Bug: 242077104
Change-Id: I5b7c28f3e06dfec491f48d16d4ade4ef4b3329a5
1 file changed
tree: 3f9bbe1274175bb94cd016f32ed4ec50809ad056
  1. project/
  2. .clang-format
  3. LICENSE
  4. PREUPLOAD.cfg