Skip to content

Commit 44cc894

Browse files
committed
making the sample client more usable
1 parent 6ff0566 commit 44cc894

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

msldap/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
__version__ = "0.3.21"
2+
__version__ = "0.3.22"
33
__banner__ = \
44
"""
55
# msldap %s

msldap/examples/msldapclient.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ async def amain(args):
580580
await client.run()
581581
else:
582582
for command in args.commands:
583+
if command == 'i':
584+
await client.run()
585+
return
583586
cmd = shlex.split(command)
584587
res = await client._run_single_command(cmd[0], cmd[1:])
585588
if res is False:
@@ -591,7 +594,7 @@ def main():
591594
parser.add_argument('-v', '--verbose', action='count', default=0, help='Verbosity, can be stacked')
592595
parser.add_argument('-n', '--no-interactive', action='store_true')
593596
parser.add_argument('url', help='Connection string in URL format.')
594-
parser.add_argument('commands', nargs='*')
597+
parser.add_argument('commands', nargs='*', help="Takes a series of commands which will be executed until error encountered. If the command is 'i' is encountered during execution it drops back to interactive shell.")
595598

596599
args = parser.parse_args()
597600

0 commit comments

Comments
 (0)