Displaying 8 results from an estimated 8 matches for "add_argument".
2022 Nov 04
3
[libnbd PATCH v2 0/3] Improve nbdsh -u handling
v1 was here:
https://listman.redhat.com/archives/libguestfs/2022-October/030216.html
Since then, I've incorporated changes based on Rich's feedback:
swap order of patches 2 and 3
less change in patch 1 (including no unsafe eval(%s) for --uri)
in patch 2, include -c in list of snippets to store, and use dict of
lambdas to map back to the desired action
Eric Blake (3):
nbdsh:
2019 Sep 12
1
[libnbd PATCH] nbdsh: Support -u as synonym for --connect
...<NBD URI|https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>.
diff --git a/python/nbdsh.py b/python/nbdsh.py
index 00bc6bc..b15702c 100644
--- a/python/nbdsh.py
+++ b/python/nbdsh.py
@@ -29,7 +29,7 @@ def shell():
epilog=epilog)
parser.add_argument ('-b', '--base-allocation', action='store_true',
help='request the "base:allocation" meta context')
- parser.add_argument ('--connect', metavar='URI',
+ parser.add_argument ('-u', '--connect',...
2019 Sep 12
1
[libnbd PATCH v2] nbdsh: Prefer --uri over --connect
...lt;NBD URI|https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>.
diff --git a/python/nbdsh.py b/python/nbdsh.py
index 098cc8a..3b4ad0e 100644
--- a/python/nbdsh.py
+++ b/python/nbdsh.py
@@ -29,8 +29,10 @@ def shell():
epilog=epilog)
parser.add_argument ('--base-allocation', action='store_true',
help='request the "base:allocation" meta context')
- parser.add_argument ('--connect', metavar='URI',
+ parser.add_argument ('-u', '--uri',...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
..._property(Qmf::SchemaProperty.new("version", Qmf::TYPE_SSTR, :access => Qmf::ACCESS_READ_CREATE, :desc => "Ovirt version string"))
+
+ method = Qmf::SchemaMethod.new("create_vm_def", :desc => "Define a new virtual machine definition.")
+ method.add_argument(Qmf::SchemaArgument.new("description", Qmf::TYPE_LSTR, :desc => "Description of new VM definition"))
+ method.add_argument(Qmf::SchemaArgument.new("num_vcpus_allocated", Qmf::TYPE_UINT32, :desc => "Number of virtual CPUs to allocate."))
+ method.a...
2019 Sep 12
2
[libnbd PATCH] nbdsh: Add -b option to simplify h.block_status
...+ b/python/nbdsh.py
@@ -27,6 +27,8 @@ def shell():
epilog = '''Please read the nbdsh(1) manual page for full usage.'''
parser = argparse.ArgumentParser (prog='nbdsh', description=description,
epilog=epilog)
+ parser.add_argument ('-b', '--base-allocation', action='store_true',
+ help='request the "base:allocation" meta context')
parser.add_argument ('--connect', metavar='URI',
help="connect to NBD URI"...
2020 Sep 28
2
[libnbd PATCH] nbdsh: Add --opt-mode command line option
...hon/nbdsh.py b/python/nbdsh.py
index 083dfee..4a1b5f3 100644
--- a/python/nbdsh.py
+++ b/python/nbdsh.py
@@ -38,6 +38,10 @@ def shell():
help='request the "base:allocation" meta context')
long_options.append("--base-allocation")
+ parser.add_argument('--opt-mode', action='store_true',
+ help='request opt mode during connection')
+ long_options.append("--opt-mode")
+
parser.add_argument('-u', '--uri', help="connect to NBD URI")
short_options.append(&q...
2019 Sep 12
2
[libnbd PATCH] nbdsh: Start adding unit tests
...9;''Network Block Device (NBD) shell'''
+ description = '''Network Block Device (NBD) shell. Please read the
+ nbdsh(1) manual page for full usage.'''
parser = argparse.ArgumentParser (prog='nbdsh', description=description)
parser.add_argument ('--connect',
help="connect to NBD URI")
diff --git a/sh/Makefile.am b/sh/Makefile.am
index 2e04e46..2e9a047 100644
--- a/sh/Makefile.am
+++ b/sh/Makefile.am
@@ -21,6 +21,7 @@ EXTRA_DIST = \
nbdsh.pod \
examples/LICENSE-FOR-EXAMPLES \
examples/hexdu...
2018 Jul 09
1
slow mailbox refreshes
Hello,
I am using dovecot 2.3.2 on my private email server in conjunction with:
centos 7.5
apache 2.4.6
mariadb 10.2.16
roundcube mail 1.3.6
php 5.6.36
postfix 2.10.1
I have one mailbox with nearly 30k messages in it dispersed across
several folders. it's often very slow in refreshing the message list,
especially in the one largest 25k+ message folder. is this simply to be
expected