lib: fix align, src: fix opts parser for CLI app