diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-02-25 17:07:49 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-02-25 17:07:49 -0500 |
commit | 1ea4c464d8f8a7da9f359979f54a55bd6d231302 (patch) | |
tree | c7b249376d89ab109e2eaa48e4d19b15448fc08c /cobbler/modules/cli_misc.py | |
parent | 1859709fe6ecf6b0503ccdb56c1e87d7cc15009d (diff) | |
download | cobbler-1ea4c464d8f8a7da9f359979f54a55bd6d231302.tar.gz cobbler-1ea4c464d8f8a7da9f359979f54a55bd6d231302.tar.xz cobbler-1ea4c464d8f8a7da9f359979f54a55bd6d231302.zip |
Doc fix
Diffstat (limited to 'cobbler/modules/cli_misc.py')
-rw-r--r-- | cobbler/modules/cli_misc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py index 881787b8..ebbba477 100644 --- a/cobbler/modules/cli_misc.py +++ b/cobbler/modules/cli_misc.py @@ -73,13 +73,16 @@ class ImportFunction(commands.CobblerFunction): return "import" def add_options(self, p, args): - p.add_option("--mirror", dest="mirror", help="local path or rsync location (REQUIRED)") + p.add_option("--path", dest="mirror", help="local path or rsync location (REQUIRED)") + p.add_option("--mirror", dest="mirror_alt", help="alias for --path") p.add_option("--name", dest="name", help="name, ex 'RHEL-5', (REQUIRED)") p.add_option("--available-as", dest="available_as", help="do not mirror, use this as install tree") p.add_option("--kickstart", dest="kickstart_file", help="use the kickstart file specified as the profile's kickstart file") p.add_option("--rsync-flags", dest="rsync_flags", help="pass additional flags to rsync") def run(self): + if self.options.mirror_alt and not self.options.mirror: + self.options.mirror = self.options.mirror_alt if not self.options.mirror: raise CX(_("mirror is required")) if not self.options.name: |