diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-06-27 16:57:21 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-05 01:05:20 +0000 |
commit | e5e4c113713ffbc88836db6cea0245a32151748f (patch) | |
tree | e2186fbd8e76a89b067ae269346c28296a7a7062 /source4/scripting | |
parent | 96148436b7f8633da920ef5b52d8ad3aa735a9cc (diff) | |
download | samba-e5e4c113713ffbc88836db6cea0245a32151748f.tar.gz |
s4/scripting/get-descriptors: print usage with insufficient arguments
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/get-descriptors | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/bin/get-descriptors b/source4/scripting/bin/get-descriptors index 31106d434b0..bed01e7ceb3 100755 --- a/source4/scripting/bin/get-descriptors +++ b/source4/scripting/bin/get-descriptors @@ -61,6 +61,10 @@ creds = credopts.get_credentials(lp) opts = parser.parse_args()[0] +if not opts.host or not opts.localdomain or not opts.remote_domain: + parser.print_usage() + sys.exit(1) + class DescrGetter: def __init__(self, localdomain, remotedomain): |