1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-26 03:42:04 +03:00

samba-tool: Don't require full prog line to be in synopsis.

This commit is contained in:
Jelmer Vernooij
2011-10-13 23:27:22 +02:00
parent b5d5945801
commit 9213f398ad
17 changed files with 80 additions and 98 deletions

View File

@ -33,11 +33,10 @@ from samba.netcmd import (
)
class cmd_spn_list(Command):
"""List spns of a given user."""
synopsis = "%prog spn list <user> [options]"
synopsis = "%prog <user> [options]"
takes_args = ["user"]
@ -71,11 +70,10 @@ class cmd_spn_list(Command):
raise CommandError("User %s not found" % user)
class cmd_spn_add(Command):
"""Create a new spn."""
synopsis = "%prog spn add <name> <user> [options]"
synopsis = "%prog <name> <user> [options]"
takes_options = [
Option("--force", help="Force the addition of the spn"\
@ -126,11 +124,10 @@ class cmd_spn_add(Command):
raise CommandError("User %s not found" % user)
class cmd_spn_delete(Command):
"""Delete a spn."""
synopsis = "%prog spn delete <name> [user] [options]"
synopsis = "%prog <name> [user] [options]"
takes_args = ["name", "user?"]
@ -181,7 +178,6 @@ class cmd_spn_delete(Command):
raise CommandError("Service principal %s not affected" % name)
class cmd_spn(SuperCommand):
"""Service Principal Name (SPN) management"""