1111
1212
1313@click .group ()
14+ @click .help_option ("-h" , "--help" )
1415def profile ():
1516 """Manage MCPM profiles."""
1617 pass
@@ -19,6 +20,7 @@ def profile():
1920@click .command ()
2021@click .argument ("profile_name" )
2122@click .option ("--client" , "-c" , default = "client" , help = "Client of the profile" )
23+ @click .help_option ("-h" , "--help" )
2224def activate (profile_name , client ):
2325 """Activate a profile.
2426
@@ -41,6 +43,7 @@ def activate(profile_name, client):
4143
4244@click .command ()
4345@click .option ("--client" , "-c" , default = "client" , help = "Client of the profile" )
46+ @click .help_option ("-h" , "--help" )
4447def deactivate (client ):
4548 """Deactivate a profile.
4649
@@ -63,6 +66,7 @@ def deactivate(client):
6366
6467@profile .command (name = "ls" )
6568@click .option ("--verbose" , "-v" , is_flag = True , help = "Show detailed server information" )
69+ @click .help_option ("-h" , "--help" )
6670def list (verbose = False ):
6771 """List all MCPM profiles."""
6872 profiles = profile_config_manager .list_profiles ()
@@ -93,6 +97,7 @@ def list(verbose=False):
9397@profile .command ()
9498@click .argument ("profile" )
9599@click .option ("--force" , is_flag = True , help = "Force add even if profile already exists" )
100+ @click .help_option ("-h" , "--help" )
96101def add (profile , force = False ):
97102 """Add a new MCPM profile."""
98103 if profile_config_manager .get_profile (profile ) is not None and not force :
@@ -112,6 +117,7 @@ def add(profile, force=False):
112117@profile .command ()
113118@click .argument ("profile" )
114119@click .option ("--server" , "-s" , required = True , help = "Server to apply config to" )
120+ @click .help_option ("-h" , "--help" )
115121def apply (profile , server ):
116122 """Apply an existing MCPM config to a profile."""
117123 client_manager = ClientRegistry .get_active_client_manager ()
@@ -147,6 +153,7 @@ def apply(profile, server):
147153
148154@profile .command ()
149155@click .argument ("profile_name" )
156+ @click .help_option ("-h" , "--help" )
150157def remove (profile_name ):
151158 """Delete an MCPM profile."""
152159 if not profile_config_manager .delete_profile (profile_name ):
@@ -157,6 +164,7 @@ def remove(profile_name):
157164
158165@profile .command ()
159166@click .argument ("profile_name" )
167+ @click .help_option ("-h" , "--help" )
160168def rename (profile_name ):
161169 """Rename an MCPM profile."""
162170 new_profile_name = click .prompt ("Enter new profile name" , type = str )
0 commit comments