[CORE] Add support for early parameter parsing

Early parameters passed with command line can be parsed
with this infrastructure and associated action can be taken.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
Signed-off-by: Anup Patel <anup@brainfault.org>