Command-line prototype and lib