add getopt library
Update context
add init command
Update command options logic
Update help command
Remove getRules method