Parse the node version from the argparse args
(args)
| 183 | |
| 184 | |
| 185 | def node_version_from_args(args): |
| 186 | """ |
| 187 | Parse the node version from the argparse args |
| 188 | """ |
| 189 | if args.node == 'system': |
| 190 | out, err = subprocess.Popen( |
| 191 | ["node", "--version"], stdout=subprocess.PIPE).communicate() |
| 192 | return parse_version(clear_output(out)) |
| 193 | |
| 194 | return parse_version(args.node) |
| 195 | |
| 196 | |
| 197 | def create_logger(): |
no test coverage detected