diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-11-28 13:34:19 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-11-28 17:23:27 +0100 |
commit | 28b509579df99ee576d5353eada31cd58aaa2508 (patch) | |
tree | 68a93e1234b9aed61f6d8188163bf0133a9914e9 /source4/scripting | |
parent | 56969adb3dad6dbaec2410e4e23242b3ce88b696 (diff) | |
download | samba-28b509579df99ee576d5353eada31cd58aaa2508.tar.gz samba-28b509579df99ee576d5353eada31cd58aaa2508.tar.bz2 samba-28b509579df99ee576d5353eada31cd58aaa2508.zip |
chgtdcpass: Fix program name in usage message.
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/devel/chgtdcpass | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/scripting/devel/chgtdcpass b/source4/scripting/devel/chgtdcpass index 1030531363..dc249834e0 100755 --- a/source4/scripting/devel/chgtdcpass +++ b/source4/scripting/devel/chgtdcpass @@ -17,6 +17,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +__docformat__ = "restructuredText" + + import optparse import sys # Allow to run from s4 source directory (without installing samba) @@ -30,10 +33,7 @@ from samba.upgradehelpers import (get_paths, find_provision_key_parameters, get_ldbs, update_machine_account_password) -__docformat__ = "restructuredText" - - -parser = optparse.OptionParser("provision [options]") +parser = optparse.OptionParser("chgtdcpass [options]") sambaopts = options.SambaOptions(parser) parser.add_option_group(sambaopts) parser.add_option_group(options.VersionOptions(parser)) @@ -42,7 +42,6 @@ parser.add_option_group(credopts) opts = parser.parse_args()[0] - lp = sambaopts.get_loadparm() smbconf = lp.configfile creds = credopts.get_credentials(lp) |