MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / get_argv

Function get_argv

brainworkshop.py:47–54  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

45 else:
46 print("ERROR: %s" % msg)
47def get_argv(arg):
48 if arg in sys.argv:
49 index = sys.argv.index(arg)
50 if index + 1 < len(sys.argv):
51 return sys.argv[index + 1]
52 else:
53 error_msg("Expected an argument following %s" % arg)
54 exit(1)
55
56import random, os, sys, socket, webbrowser, time, math, traceback, datetime, errno
57if sys.version_info >= (3,0):

Callers 4

get_data_dirFunction · 0.85
get_res_dirFunction · 0.85
brainworkshop.pyFile · 0.85
parse_configFunction · 0.85

Calls 1

error_msgFunction · 0.85

Tested by

no test coverage detected