{"action":"created","issue":{"url":"https://api.github.com/repos/iipeace/guider/issues/33","repository_url":"https://api.github.com/repos/iipeace/guider","labels_url":"https://api.github.com/repos/iipeace/guider/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/iipeace/guider/issues/33/comments","events_url":"https://api.github.com/repos/iipeace/guider/issues/33/events","html_url":"https://github.com/iipeace/guider/issues/33","id":373656425,"node_id":"MDU6SXNzdWUzNzM2NTY0MjU=","number":33,"title":"Changing the command-line of guider to be smarter.","user":{"login":"jungsusohn","id":22583393,"node_id":"MDQ6VXNlcjIyNTgzMzkz","avatar_url":"https://avatars0.githubusercontent.com/u/22583393?v=4","gravatar_id":"","url":"https://api.github.com/users/jungsusohn","html_url":"https://github.com/jungsusohn","followers_url":"https://api.github.com/users/jungsusohn/followers","following_url":"https://api.github.com/users/jungsusohn/following{/other_user}","gists_url":"https://api.github.com/users/jungsusohn/gists{/gist_id}","starred_url":"https://api.github.com/users/jungsusohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungsusohn/subscriptions","organizations_url":"https://api.github.com/users/jungsusohn/orgs","repos_url":"https://api.github.com/users/jungsusohn/repos","events_url":"https://api.github.com/users/jungsusohn/events{/privacy}","received_events_url":"https://api.github.com/users/jungsusohn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-24T20:09:00Z","updated_at":"2018-10-31T13:45:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently the command-line of guider doesn't give us useful help message, but just one format. Using the current help message, it is hard to understand to use guider's power functions. I think this is the first obstacle that people encounter when using Guider. So, I think it is necessary to provide useful help message format in every sub-command. The below message is a sample. Please take a look at them and give me your opinion or advice. \r\n\r\n```\r\n------- current help message: always giving one format ---------\r\n  / _` || | | || | / _` | / _ \\| '__|\r\n | (_| || |_| || || (_| ||  __/| |\r\n  \\__, | \\__,_||_| \\__,_| \\___||_|   ver.3.9.3\r\n   |___/\r\n    \r\n\r\nMode:\r\n\r\n    [analysis]\r\n        top         [process]\r\n        bgtop       [background]\r\n        threadtop   [thread]\r\n        filetop     [file]\r\n     .....\r\n\r\nOptions:\r\n\r\n    [record]\r\n        -e  [enable_options - characters]\r\n              [common]   {m(em)|b(lock)|e(ncoding)}\r\n              [function] {h(eap)|L(ock)|p(ipe)|g(raph)}\r\n              [thread]   {i(rq)|l(ock)|n(et)|p(ipe)|\r\n                          P(ower)|r(eset)|g(raph)}\r\n    ..........\r\n    [common]\r\n        -a  [show_allInfo]\r\n        -Q  [print_allRowsInaStream]\r\n        -i  [set_interval - sec]\r\n        -R  [set_repeatCount - {interval:}count]\r\n\r\n=================================\r\nNew message\r\n$ python3 guider.py -h\r\nusage: guider.py <mode> [<options>] \r\n\r\n<mode>\r\n [analysis] top         [process]\r\n            bgtop       [background]\r\n            threadtop   [thread]\r\n            filetop     [file]\r\n            stacktop    [stack]\r\n            perftop     [PMU]\r\n            memtop      [memory]\r\n            disktop     [storage]\r\n            wsstop      [WSS]\r\n            reptop      [report]\r\n            record      [thread]\r\n            funcrecord  [function]\r\n            filerecord  [file]\r\n            sysrecord   [system]\r\n            draw        [image]\r\n            cpudraw     [cpu]\r\n            memdraw     [memory]\r\n            vssdraw     [vss]\r\n            rssdraw     [rss]\r\n            leakdraw    [leak]\r\n            iodraw      [io]\r\n            mem         [page]\r\n            strace      [syscall]\r\n  [control] kill        [signal]\r\n            setsched    [priority]\r\n            getaffinity [affinity]\r\n            setaffinity [affinity]\r\n            server      [server]\r\n            client      [client]\r\n            cpulimit    [cpu]\r\n     [test] alloctest   [mem]\r\n     [comm] list\r\n            start\r\n            send\r\n            event\r\n\r\npositional arguments:\r\n  mode        submode to run\r\n\r\noptional arguments:\r\n  -h, --help  show this help message and exit\r\n\r\njungsu@jsson:~/work/guider/guider$ python3 guider.py record -h\r\nusage: guider.py record [<options>]\r\n\r\nRecord process\r\n\r\noptional arguments:\r\n  -h, --help  show this help message and exit\r\n  -e OPTIONS  one of the following options must be chosen\r\n              [common]\r\n              [function]\r\n              [thread]\r\n              [top]\r\n\r\njungsu@jsson:~/work/guider/guider$ python3 guider.py record -e\r\nusage: guider.py record [<options>]\r\nguider.py: error: argument -e: expected one argument\r\n\r\njungsu@jsson:~/work/guider/guider$ python3 guider.py record -e common -h\r\nusage: guider.py record -e common [<option>]\r\n\r\nRecord's enable subprocess\r\n\r\noptional arguments:\r\n  -h, --help    show this help message and exit\r\n  -t OPTION  available options(multiple choice is available)\r\n                {m(em)|b(lock)|e(ncoding)}\r\n                 m: memory\r\n                 b: block\r\n                 e: encoding\r\n\r\njungsu@jsson:~/work/guider/guider$ \r\n```\r\n``"},"comment":{"url":"https://api.github.com/repos/iipeace/guider/issues/comments/434692328","html_url":"https://github.com/iipeace/guider/issues/33#issuecomment-434692328","issue_url":"https://api.github.com/repos/iipeace/guider/issues/33","id":434692328,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDY5MjMyOA==","user":{"login":"iipeace","id":15862689,"node_id":"MDQ6VXNlcjE1ODYyNjg5","avatar_url":"https://avatars0.githubusercontent.com/u/15862689?v=4","gravatar_id":"","url":"https://api.github.com/users/iipeace","html_url":"https://github.com/iipeace","followers_url":"https://api.github.com/users/iipeace/followers","following_url":"https://api.github.com/users/iipeace/following{/other_user}","gists_url":"https://api.github.com/users/iipeace/gists{/gist_id}","starred_url":"https://api.github.com/users/iipeace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iipeace/subscriptions","organizations_url":"https://api.github.com/users/iipeace/orgs","repos_url":"https://api.github.com/users/iipeace/repos","events_url":"https://api.github.com/users/iipeace/events{/privacy}","received_events_url":"https://api.github.com/users/iipeace/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T13:45:09Z","updated_at":"2018-10-31T13:45:09Z","author_association":"OWNER","body":"@jungsusohn, @honggyukim.\r\nplease just pull lastest code :)"}}
{"actor":{"display_login":"iipeace"}}