[−][src]Function python_launcher::action_from_args
pub fn action_from_args(args: Vec<String>) -> Action
Figure out what action is being requested based on the arguments to the executable.
Examples
Typically you will construct a Vec<String>
from env::args()
.
use std::env; use python_launcher as py; let args = env::args().collect::<Vec<String>>(); let action = py::action_from_args(args);