args <- "--value 6 --fruit apple"
option <- "--fruit"
value <- argsParser(option=option,args=args)
option2 <- "--jobs"
value2 <- argsParser(option=option2,args=args)
value22 <- argsParser(option=option2,args=args,novalue_response="./")
args_b <- "value=6 , fruit=apple"
option3 <- "value"
value <- argsParser(option=option3,args=args_b,sep=c(",","="))
Run the code above in your browser using DataLab