id

133

title
All profile commands should support -p as argument
reporter
Xavier Maillard
created
16/04/2016, 17:31
updated
16/04/2016, 17:41
labels
jp
type
bug
status
closed
priority
normal
milestone
0.7
severity
normal
body

Many commands for the jp profile family need a '-p' argument to pass the target profile. jp profile delete, though, does not support. I think we should be more consistent and add '-p' everywhere or nowhere. What do you think ?

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_133

Click to reduce…

There are 2 reasons why -p is not used for "profile delete" 1) -p is here when a connection is needed (or a "plug" which is starting the profile session without connecting to the XMPP account), this is not necessary for a profile deletion 2) -p is optional, and default to "@DEFAULT@" (i.e. the default profile). For a deletion, it could lead to the accidental deletion of the default profile, so it is better to have a positional argument (which is mandatory) here.

Click to expand… Click to reduce…

You are not logged. You need to log in to comment.