Which is better? dancerctl app start|stop [environment] or dancerctl start|stop app [environment] Or may be it's better to have reserved words (start|stop|restart|etc) and try to autodetect first two parameters which one is app_name and which one is action? Also, the new stable version will be available soon. The new and much better documentation is already available at https://github.com/knutov/dancerctl/tree/dev -- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130
Nick Knutov <mail@knutov.com> wrote:
Which is better?
dancerctl app start|stop [environment] dancerctl start|stop app [environment]
I prefer the second option: keeping the subcommand first means that you can later add subcommands which don't take an app name, or which take multiple app names. -- Aaron Crane ** http://aaroncrane.co.uk/
On 24/11/2011 11:04, Aaron Crane wrote:
Nick Knutov<mail@knutov.com> wrote:
Which is better?
dancerctl app start|stop [environment] dancerctl start|stop app [environment]
I prefer the second option: keeping the subcommand first means that you can later add subcommands which don't take an app name, or which take multiple app names.
2nd better. easier to read as well "start the app"
ok, 3 voices for the second way. Will be changed to this in next version. 24.11.2011 17:49, ambs пишет:
On 24/11/2011 11:04, Aaron Crane wrote:
Nick Knutov<mail@knutov.com> wrote:
Which is better?
dancerctl app start|stop [environment] dancerctl start|stop app [environment]
I prefer the second option: keeping the subcommand first means that you can later add subcommands which don't take an app name, or which take multiple app names.
2nd better. easier to read as well "start the app" _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
-- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130
participants (5)
-
Aaron Crane -
ambs -
Natal Ngétal -
Nick Knutov -
sawyer x