search for: argumentparser

Displaying 6 results from an estimated 6 matches for "argumentparser".

2019 Sep 12
2
[libnbd PATCH] nbdsh: Start adding unit tests
....py @@ -23,7 +23,8 @@ def shell(): import nbd - description = '''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_...
2015 Aug 20
1
Fwd: ABRT Daemon/sosreport disaster
...8 Aug 2015 10:33:44 BST uid: 0 backtrace: :abrt-action-generate-machine-id:24:<module>:ImportError: No module named argparse : :Traceback (most recent call last): : File "/usr/libexec/abrt-action-generate-machine-id", line 24, in <module> : from argparse import ArgumentParser :ImportError: No module named argparse : :Local variables in innermost frame: :__builtins__: <module '__builtin__' (built-in)> :__file__: '/usr/libexec/abrt-action-generate-machine-id' :__package__: None :sys: <module 'sys' (built-in)> :__name__: '__main__...
2019 Sep 12
2
[libnbd PATCH] nbdsh: Add -b option to simplify h.block_status
...d> 'COMMAND ...' diff --git a/python/nbdsh.py b/python/nbdsh.py index 319b0f0..00bc6bc 100644 --- a/python/nbdsh.py +++ 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')...
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
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:
2015 Oct 09
3
Python version for scripts in LLVM?
...======================================================= --- create_ladder_graph.py (revision 249819) +++ create_ladder_graph.py (working copy) @@ -10,6 +10,7 @@ really behaving linearly. """ +from __future__ import print_function import argparse def main(): parser = argparse.ArgumentParser(description=__doc__) @@ -17,27 +18,27 @@ help="Number of ladder rungs. Must be a multiple of 2") args = parser.parse_args() if (args.rungs % 2) != 0: - print "Rungs must be a multiple of 2" + print("Rungs must be a multiple of 2")...