postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

Inconsistency with flag shorthands

Open xenophenes opened this issue 8 years ago • 4 comments

There's inconsistent shorthand use between commands. For example, -x -

pgo label
|`--delete-label` |-x |String |

pgo create cluster
|`--backup-path` |-x |String |

Or -l:

pgo load
|`--load-config` |-l |String |

pgo create cluster
|`--labels` |-l |String |

pgo label
|`--label` |-l |String |

-s:

pgo create cluster
|`--secret-from` |-s |String |

all other commands...
|`--selector` |-s |String |

-e:

pgo user
|`--expired` |-e |String |

pgo create cluster
|`--series` |-e |Int |

etc.

This should be addressed so that each command with a shortcode has a unique character that is relevant to only that command across all combinations with other flags.

xenophenes avatar Aug 27 '18 01:08 xenophenes

@jmccormick2001 total list of proposed shorthands, with all others not listed here being removed:

--selector | -s --output | -o --delete-data | -d --delete-backups | -b --no-prompt | -n

These seem fairly universal, and we can add on shortcodes as more general ones are added or if there's a usability demand for it.

Thoughts on also adding pgo -v for pgo version to be able to use either/or?

xenophenes avatar Sep 05 '18 18:09 xenophenes

those shorthands are fine, and -v is fine too.

jmccormick2001 avatar Sep 06 '18 21:09 jmccormick2001

@cahoonpwork this issue is not ready to be closed! I need to implement the new shorthands :)

xenophenes avatar Sep 10 '18 15:09 xenophenes

@xenophenes Sorry, thought I read that a merge had taken place for it.

cahoonpwork avatar Sep 10 '18 18:09 cahoonpwork