Convert FROM_SHA and TO_SHA to command line arguments

FROM_SHA and TO_SHA should be converted to command line flags --from-sha and --to-sha

Note: this change should be backwards compatible to support both command line flag and environment variable to allow for multi-version compatibility . Create a follow up issue in a future milestone to fully remove the backwards compatibility