add min_args and max_args

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14024 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2004-07-05 11:30:30 +00:00
parent 70348b8d4e
commit 27959f1c5b

View File

@@ -72,6 +72,8 @@ command = {
help = "decrypt keys" help = "decrypt keys"
} }
argument = "[dump-file]" argument = "[dump-file]"
min_args = "0"
max_args = "1"
help = "Dumps the database in a human readable format to the specified file, \nor the standard out. Local (-l) mode only." help = "Dumps the database in a human readable format to the specified file, \nor the standard out. Local (-l) mode only."
} }
@@ -88,16 +90,21 @@ command = {
help = "realm max renewable lifetime" help = "realm max renewable lifetime"
} }
argument = "realm..." argument = "realm..."
min_args = "1"
help = "Initializes the default principals for a realm. Creates the database\nif necessary. Local (-l) mode only." help = "Initializes the default principals for a realm. Creates the database\nif necessary. Local (-l) mode only."
} }
command = { command = {
name = "load" name = "load"
argument = "file" argument = "file"
min_args = "1"
max_args = "1"
help = "Loads a previously dumped file. Local (-l) mode only." help = "Loads a previously dumped file. Local (-l) mode only."
} }
command = { command = {
name = "merge" name = "merge"
argument = "file" argument = "file"
min_args = "1"
max_args = "1"
help = "Merges the contents of a dump file into the database. Local (-l) mode only." help = "Merges the contents of a dump file into the database. Local (-l) mode only."
} }
command = { command = {
@@ -162,6 +169,7 @@ command = {
help = "use default values" help = "use default values"
} }
argument = "principal..." argument = "principal..."
min_args = "1"
help = "Adds a principal to the database." help = "Adds a principal to the database."
} }
command = { command = {
@@ -192,6 +200,7 @@ command = {
help = "DES key in hex" help = "DES key in hex"
} }
argument = "principal..." argument = "principal..."
min_args = "1"
help = "Changes the password of one or more principals matching the expressions." help = "Changes the password of one or more principals matching the expressions."
} }
command = { command = {
@@ -200,11 +209,13 @@ command = {
name = "del_entry" name = "del_entry"
function = "del_entry" function = "del_entry"
argument = "principal..." argument = "principal..."
min_args = "1"
help = "Deletes all principals matching the expressions." help = "Deletes all principals matching the expressions."
} }
command = { command = {
name = "del_enctype" name = "del_enctype"
argument = "principal enctype..." argument = "principal enctype..."
min_args = "2"
help = "Delete all the mentioned enctypes for principal." help = "Delete all the mentioned enctypes for principal."
} }
command = { command = {
@@ -216,6 +227,7 @@ command = {
help = "keytab to use" help = "keytab to use"
} }
argument = "principal..." argument = "principal..."
min_args = "1"
help = "Extracts the keys of all principals matching the expressions, and stores them in a keytab." help = "Extracts the keys of all principals matching the expressions, and stores them in a keytab."
} }
command = { command = {
@@ -249,12 +261,15 @@ command = {
help = "columns to print for short output" help = "columns to print for short output"
} }
argument = "principal..." argument = "principal..."
min_args = "1"
help = "Shows information about principals matching the expressions." help = "Shows information about principals matching the expressions."
} }
command = { command = {
name = "rename" name = "rename"
function = "rename_entry" function = "rename_entry"
argument = "from to" argument = "from to"
min_args = "2"
max_args = "2"
help = "Renames a principal." help = "Renames a principal."
} }
command = { command = {
@@ -298,6 +313,8 @@ command = {
default = "-1" default = "-1"
} }
argument = "principal" argument = "principal"
min_args = "1"
max_args = "1"
help = "Modifies some attributes of the specified principal." help = "Modifies some attributes of the specified principal."
} }
command = { command = {
@@ -336,6 +353,7 @@ command = {
help = "columns to print for short output" help = "columns to print for short output"
} }
argument = "principal..." argument = "principal..."
min_args = "1"
help = "Lists principals in a terse format. Equivalent to \"get -t\"." help = "Lists principals in a terse format. Equivalent to \"get -t\"."
} }
@@ -344,7 +362,8 @@ command = {
name = "pwq" name = "pwq"
function = "password_quality" function = "password_quality"
argument = "principal password" argument = "principal password"
min_args = "2"
max_args = "2"
help = "Try run the password quality function locally (not doing RPC out to server)." help = "Try run the password quality function locally (not doing RPC out to server)."
} }
@@ -352,6 +371,8 @@ command = {
name = "help" name = "help"
name = "?" name = "?"
argument = "[command]" argument = "[command]"
min_args = "0"
max_args = "1"
help = "Help! I need somebody." help = "Help! I need somebody."
} }