Skip to content

Instantly share code, notes, and snippets.

@bringhurst
Created November 5, 2014 19:14
Show Gist options
  • Save bringhurst/44d3b308100462491767 to your computer and use it in GitHub Desktop.
Save bringhurst/44d3b308100462491767 to your computer and use it in GitHub Desktop.
dcp last argument is file
if( last_argument_is_file ) {
if( number_of_source_files == 1 && is_file(src_path) ) {
set_base(basename_of_last_argument)
push_work_queue(src_path);
} else {
error(impossible_condition)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment