fix(autoname-workspaces) rearrange CLI parameters

Move shorthand-arguments above full-text-arguments to improve the help
menu's UI and to make it more consistent (-h is before
--help but for the other arguments it was the other way round).
This commit is contained in:
hxr404 2022-06-06 03:12:53 +02:00
parent a6d0ac9780
commit a7ec761da4
No known key found for this signature in database
GPG key ID: 265128F293C877D7

View file

@ -86,14 +86,14 @@ if __name__ == "__main__":
description="This script automatically changes the workspace name in sway depending on your open applications."
)
parser.add_argument(
"--duplicates",
"-d",
"--duplicates",
action="store_true",
help="Set it when you want an icon for each instance of the same application per workspace.",
)
parser.add_argument(
"--logfile",
"-l",
"--logfile",
type=str,
default="/tmp/sway-autoname-workspaces.log",
help="Path for the logfile.",