POSIX compatible command line argument handling #1025
FrankRay78
started this conversation in
General
Replies: 2 comments
-
Feel free to summarise your findings here @sandreas. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, let's regard the edge cases below for a first basic test, assuming that Windows and Linux/macOS (POSIX) handle arguments a bit different:
# OPTIONS
--order-by "-size"
--order-by ""
--order-by " "
## short form
-o-size # => --order-by "-size"
-o "" # => --order-by ""
-o"" # => --order-by ""
-o" " # => --order-by " "
## POSIX only because windows does not support single quote enclosures
--order-by '"something quoted"'
--order-by '"something quoted" with additional text'
# FLAGS (+ARGUMENTS)
--dry-run ./directory
-df # --debug, --force
# FLAG / OPTION combinations (is that a wanted behaviour?)
-dfo "-size" # --debug --force --order-by "-size" If someone can think of more useful edge cases, feel free to add a comment... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are several bugs raised covering various edge cases and/or platform specific differences with how command line arguments are parsed and handled by spectre.console.
Discussions about POSIX compatible command line argument handling can be done here (in addition to issue specific commentary).
Beta Was this translation helpful? Give feedback.
All reactions