From 87732ebc90d5eba80f2efdabcfcf48774ae980e8 Mon Sep 17 00:00:00 2001 From: Xieyt Date: Tue, 25 Jun 2024 17:50:10 +0530 Subject: [PATCH] Update shortflag of --environment --- frappe_manager/commands.py | 4 ++-- frappe_manager/utils/examples.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frappe_manager/commands.py b/frappe_manager/commands.py index d66d45d..1dbbb2c 100644 --- a/frappe_manager/commands.py +++ b/frappe_manager/commands.py @@ -157,7 +157,7 @@ def create( ), ] = [], environment: Annotated[ - FMBenchEnvType, typer.Option("--environment", "--env", help="Select bench environment type.") + FMBenchEnvType, typer.Option("--environment", "-e", help="Select bench environment type.") ] = FMBenchEnvType.dev, letsencrypt_preferred_challenge: Annotated[ Optional[LETSENCRYPT_PREFERRED_CHALLENGE], @@ -500,7 +500,7 @@ def update( ] = None, environment: Annotated[ Optional[FMBenchEnvType], - typer.Option("--environment", "--env", help="Switch bench environment.", show_default=False), + typer.Option("--environment", "-e", help="Switch bench environment.", show_default=False), ] = None, developer_mode: Annotated[ Optional[EnableDisableOptionsEnum], diff --git a/frappe_manager/utils/examples.json b/frappe_manager/utils/examples.json index 1009b19..045625d 100644 --- a/frappe_manager/utils/examples.json +++ b/frappe_manager/utils/examples.json @@ -14,11 +14,12 @@ "code": " --apps erpnext --apps hrms" }, { - "desc": "Install Frappe[{default_version}], ERPNext[{default_version}], and HRMS[develop].", "code": " --apps erpnext --apps hrms:develop" + "desc": "Install Frappe[{default_version}], ERPNext[{default_version}], and HRMS[develop].", + "code": " --apps erpnext --apps hrms:develop" }, { "desc": "Use Frappe production mode based bench.", - "code": " --env prod" + "code": " -e prod" }, { "desc": "Enable Admin Tools.", @@ -154,7 +155,7 @@ }, { "desc": "Switch to frappe production environment.", - "code": " --env prod" + "code": " -e prod" }, { "desc": "Switch to frappe development environment.",