cmd: Add accessor functions for options
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Apr 2011 10:41:54 +0000 (11:41 +0100)
committerDerrick Brashear <shadow@dementia.org>
Wed, 27 Apr 2011 19:06:26 +0000 (12:06 -0700)
commitda68fb9d1ce7adb3a800c402462b0872c769a609
tree39a445cd005f33f7fdeeda5ff5766fc795ca501f
parentfae24dabd0f4ae2d072e6a569f7f1f83a8df1d4e
cmd: Add accessor functions for options

Add a load of accessor functions to help with pulling values out
from the the cmd_syndesc structure. The idea here is to make it
simpler to manipulate command line values, as well as starting to
hide the structure of the cmd_syndesc structure from callers, with
a view to eventually making it private to the cmd library.

Change-Id: I38757d776364ceacd43e98fda16e995da35da65c
Reviewed-on: http://gerrit.openafs.org/4543
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/cmd/cmd.c
src/cmd/cmd.p.h
src/cmd/cmd_errors.et
tests/cmd/command-t.c