Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. def arguments_kconfig(subparser):
  2.     arch_native = pmb.parse.arch.alpine_native()
  3.     arch_choices = set(pmb.config.build_device_architectures + [arch_native])
  4.     frontend_choices = ["xconfig", "x", "gconfig", "g", "ncurses", "n"]
  5.  
  6.     ret = subparser.add_parser("kconfig", help="manage kernel aport options")
  7.     """sub = ret.add_subparsers(dest="action_kconfig")"""
  8.  
  9.     ret.add_argument("--arch", choices=arch_choices, dest="arch")
  10.     ret.add_argument("--frontend", choices=frontend_choices, default="ncurses", dest="frontend")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement