Skip to content

Commit 7d0e3f3

Browse files
authored
style-guide: refine argument order (#18491)
1 parent 4758541 commit 7d0e3f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contributing-guides/style-guide.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,12 @@ Try to keep the following order:
449449
- Program name
450450
- Input redirection from a file
451451
- All subcommands
452-
- Options/Flags
453452
- Positional arguments/Packages/Data/...
453+
- Option flags
454+
- Options with arguments
454455
- Output redirection to a file
455456

456-
For example: `systemctl < input_file.txt status --user pipewire > output_file.txt`
457+
For example: `systemctl < input_file.txt status pipewire --user > output_file.txt`
457458

458459
This is only a suggestion and should be disregarded when program functionality or readability dictates otherwise.
459460

0 commit comments

Comments
 (0)