Code snippet supporting several parts in command line