CORE-4190: implemented the service for previewing command-line arguments