Add short option for iointerface
This commit is contained in:
parent
70bd09276d
commit
f72fabaae7
@ -58,7 +58,6 @@ def ioping_output_shell():
|
|||||||
print(stdout)
|
print(stdout)
|
||||||
else:
|
else:
|
||||||
print(stderr)
|
print(stderr)
|
||||||
|
|
||||||
return returncode
|
return returncode
|
||||||
|
|
||||||
|
|
||||||
@ -102,15 +101,15 @@ def get_parser():
|
|||||||
parser.add_argument('-i', '--interval',
|
parser.add_argument('-i', '--interval',
|
||||||
help = 'interval between requests',
|
help = 'interval between requests',
|
||||||
default = '1s')
|
default = '1s')
|
||||||
parser.add_argument('--iointerface',
|
|
||||||
help = 'Which ionterface to use: async|cached|direct|sync|dsync',
|
|
||||||
default = '')
|
|
||||||
parser.add_argument('-l', '--location',
|
parser.add_argument('-l', '--location',
|
||||||
help = 'directory|file|device to test. Best would be a directory to not shred anything accidentially',
|
help = 'directory|file|device to test. Best would be a directory to not shred anything accidentially',
|
||||||
default = '/tmp')
|
default = '/tmp')
|
||||||
parser.add_argument('-m', '--mode',
|
parser.add_argument('-m', '--mode',
|
||||||
help = 'Which output to use: shell|telegraf',
|
help = 'Which output to use: shell|telegraf',
|
||||||
default = 'telegraf')
|
default = 'telegraf')
|
||||||
|
parser.add_argument('-n', '--iointerface',
|
||||||
|
help = 'Which ionterface to use: async|cached|direct|sync|dsync',
|
||||||
|
default = '')
|
||||||
parser.add_argument('-w', '--read-write',
|
parser.add_argument('-w', '--read-write',
|
||||||
help = 'Use read-write test instead of read.',
|
help = 'Use read-write test instead of read.',
|
||||||
action = 'store_true',
|
action = 'store_true',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user