def add_wildcards(arg):
 if (not arg.startswith(u'*')):
  arg = (u'*' + arg)
 if (not arg.endswith(u'*')):
  arg = (arg + u'*')
 return arg

def add_wildcards ( arg ) : if ( not arg . startswith ( u'*' ) ) : arg = ( u'*' + arg ) if ( not arg . endswith ( u'*' ) ) : arg = ( arg + u'*' ) return arg
add "*" around user input to generate ls-files pathspecs matches .