Notes, improve args, some UX

This commit is contained in:
2026-04-07 18:13:03 +02:00
parent 6ebae74f93
commit 6e497fdfd2
8 changed files with 80 additions and 17 deletions

View File

@@ -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"
)