Let the user to migrate as be specified in the commandline

Change-Id: I3cd9dba2ede4b2be68b992099bba55d7eae9c0d0