Project

General

Profile

« Previous | Next » 

Revision 11806

bin/map: support param start="", which indicates the default value. this fixes a bug in inputs/input.Makefile $(restart_row), which outputs "" if an explicit starting row is not found.

View differences:

bin/map
87 87
        # never redo in commit mode (run `make schemas/reinstall` instead)
88 88
    
89 89
    # Ranges
90
    start = util.cast(int, opts.get_env_var('start', 1, env_names)) # 1-based
90
    start = util.cast(int, util.coalesce(util.none_if(
91
        opts.get_env_var('start', None, env_names), u''), 1)) # 1-based
91 92
    # Make start interally 0-based.
92 93
    # It's 1-based to the user to match up with the staging table row #s.
93 94
    start -= 1

Also available in: Unified diff