diff options
author | crupest <crupest@outlook.com> | 2024-11-11 01:12:29 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-01-18 17:38:07 +0800 |
commit | 41f735ed9ddc9d96d27f7e1f2a6ca34af9cce9d9 (patch) | |
tree | ae0e509d11b974b6fda8fbef985f1e538913e6fd /tools/cru-py/cru/service/_base.py | |
parent | c0ba4d9d8d19d3faa7b4d2b3509546e37dd32364 (diff) | |
download | crupest-41f735ed9ddc9d96d27f7e1f2a6ca34af9cce9d9.tar.gz crupest-41f735ed9ddc9d96d27f7e1f2a6ca34af9cce9d9.tar.bz2 crupest-41f735ed9ddc9d96d27f7e1f2a6ca34af9cce9d9.zip |
HALF WORK: 2024.1.18
Diffstat (limited to 'tools/cru-py/cru/service/_base.py')
-rw-r--r-- | tools/cru-py/cru/service/_base.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/cru-py/cru/service/_base.py b/tools/cru-py/cru/service/_base.py index 4454c2c..1ada93b 100644 --- a/tools/cru-py/cru/service/_base.py +++ b/tools/cru-py/cru/service/_base.py @@ -142,7 +142,7 @@ class AppFeaturePath(AppPath): @property def full_path(self) -> CruPath: - return CruPath(self.parent.full_path, self.name) + return CruPath(self.parent.full_path, self.name).resolve() class AppRootPath(AppPath): @@ -217,7 +217,12 @@ class CommandDispatcher(AppFeatureProvider): required=True, type=str, ) - subparsers = arg_parser.add_subparsers(dest="command") + subparsers = arg_parser.add_subparsers( + dest="command", + required=True, + help="The management command to execute.", + metavar="COMMAND", + ) for feature in self.app.features: if isinstance(feature, AppCommandFeatureProvider): info = feature.get_command_info() |