Skip to content

Commit

Permalink
help -> cmdline_help
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Oct 15, 2024
1 parent bba4c30 commit 6b19b86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test-blockdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
n_threads = 2
stop_at_100 = False

def help():
def cmdline_help():
print(f'Usage: {sys.argv[0]} ...arguments...')
print('-d dev: block device')
print('-b blocksize: e.g. 512 or 4096')
Expand All @@ -41,7 +41,7 @@ def help():
opts, args = getopt.getopt(sys.argv[1:], 'd:b:m:u:fn:T:th')
except getopt.GetoptError as err:
print(err)
help()
cmdline_help()
sys.exit(2)

for o, a in opts:
Expand All @@ -62,11 +62,11 @@ def help():
elif o == '-t':
stop_at_100 = True
elif o == '-h':
help()
cmdline_help()
sys.exit(0)

if dev == None:
help()
cmdline_help()
sys.exit(1)

random.seed()
Expand Down

0 comments on commit 6b19b86

Please sign in to comment.