14 lines
519 B
Python
14 lines
519 B
Python
import argparse as ap
|
|
|
|
|
|
def add_parser(sp: ap._SubParsersAction[ap.ArgumentParser]):
|
|
show = sp.add_parser("show", help="get information about configuration presets")
|
|
show_sp = show.add_subparsers(
|
|
title="config presets to show details on",
|
|
dest="show",
|
|
required=True,
|
|
)
|
|
show_sp.add_parser("config", help="show details about your configuration. Alias of config show")
|
|
pkgs = show_sp.add_parser("pkgs", help="show details on package presets")
|
|
pkgs.add_argument("show_pkg")
|