G

All profile commands should support -p as argument

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 ?
G

Goffi 16/04/2016, 17:41

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.

id

133

author

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