Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936746AbdDZUbA (ORCPT ); Wed, 26 Apr 2017 16:31:00 -0400 Received: from mx.kolabnow.com ([95.128.36.1]:11694 "EHLO mx-out01.mykolab.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753325AbdDZUax (ORCPT ); Wed, 26 Apr 2017 16:30:53 -0400 X-Spam-Flag: NO X-Spam-Score: -2.9 From: Federico Vaga To: Steven Rostedt Cc: LKML Subject: trace-cmd improve main() function Date: Wed, 26 Apr 2017 22:30:26 +0200 Message-Id: <20170426203028.13900-1-federico.vaga@vaga.pv.it> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 479 Lines: 10 In two steps I tried to improve the `main()` function. The reason for those patches is that the current `main()` function is doing much more than the necessary (implementing commands); this makes the code not uniform and less clear. Tests Since those patches are mainly, copy & paste and re-writing how `trace-cmd` runs command, I tested these changes by executing the help message for all the commands. In principle, if we are able to run the commands the patches are correct.