Notes, improve args, some UX
This commit is contained in:
12
cli/args.py
12
cli/args.py
@@ -5,10 +5,10 @@ import argcomplete
|
||||
def add_cli_args():
|
||||
ap = argparse.ArgumentParser(
|
||||
"archmgr",
|
||||
description="A nixos-like declarative config and package manager for Arch Linux (or any other cdistro, with some tweaks)",
|
||||
description="A nixos-like declarative config and package manager for Arch Linux (or any other distro, with some tweaks)",
|
||||
usage="archmgr [command] [options]",
|
||||
)
|
||||
ap.add_argument("--version", "-v", action="version", version="%(prog)s V0.0.1")
|
||||
ap.add_argument("-v", "--version", action="version", version="%(prog)s V0.0.1")
|
||||
sp = ap.add_subparsers(
|
||||
title="commands",
|
||||
metavar="Use 'archmgr [command] --help' to see help for each command",
|
||||
@@ -21,13 +21,7 @@ def add_cli_args():
|
||||
commit = sp.add_parser(
|
||||
"commit", help="apply pending changes and commit to git repo"
|
||||
)
|
||||
commit.add_argument("--force", "-f", help="force apply", action="store_true")
|
||||
commit.add_argument(
|
||||
"--no-apply", "-n", help="do not apply to local system", action="store_true"
|
||||
)
|
||||
commit.add_argument(
|
||||
"--no-commit", "-N", help="do not commit changes to repo", action="store_true"
|
||||
)
|
||||
commit.add_argument("-f", "--force", help="force apply", action="store_true")
|
||||
commit.add_argument(
|
||||
"--no-render", "-r", help="do not re-render renderables", action="store_true"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user