Skip to content

Commit

Permalink
Add a -P short form for --profile option
Browse files Browse the repository at this point in the history
  • Loading branch information
dlax committed Mar 1, 2024
1 parent be164c4 commit 18caf49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/man/pg_activity.1
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ required by another session. It shows following information:
.IX Header "COMMAND-LINE OPTIONS"
.SS "\s-1CONFIGURATION\s0"
.IX Subsection "CONFIGURATION"
.IP "\fB\-\-profile=PROFILE\fR" 2
.IX Item "--profile=PROFILE"
.IP "\fB\-P \s-1PROFILE\s0\fR, \fB\-\-profile=PROFILE\fR" 2
.IX Item "-P PROFILE, --profile=PROFILE"
.Vb 1
\& Configuration profile matching a PROFILE.conf file in ${XDG_CONFIG_HOME:~/.config}/pg_activity/ or /etc/pg_activity/, or a built\-in profile.
.Ve
Expand Down
2 changes: 1 addition & 1 deletion docs/man/pg_activity.pod
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ required by another session. It shows following information:

=over 2

=item B<--profile=PROFILE>
=item B<-P PROFILE>, B<--profile=PROFILE>

Configuration profile matching a PROFILE.conf file in ${XDG_CONFIG_HOME:~/.config}/pg_activity/ or /etc/pg_activity/, or a built-in profile.

Expand Down
1 change: 1 addition & 0 deletions pgactivity/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_parser() -> ArgumentParser:
"Configuration",
)
group.add_argument(
"-P",
"--profile",
help=(
"Configuration profile matching a PROFILE.conf file in "
Expand Down

0 comments on commit 18caf49

Please sign in to comment.