You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, dose.py has a GUI configuration as well as a CLI command-line approach that allows a fast call like dose tox -v or dose "cat my_code.lang | my_interpreter.sh" and many things alike. However, parameters like the -v in that example are for the given command, not for dose, i.e., that means dose "tox -v".
A solution for giving CLI arguments for dose.py would be allowing them to happen BEFORE the command, which would be known based on the char "-" and from the context, e.g. dose.py --config dose.conf tox -v would mean:
Call dose.py directly and auto-start (because a command is given)
The call command is tox -v
Configuration file is dose.conf (where $HOME/.dose.conf would still be a fallback for "defaults" not explicitly written in the given alternative, though it should be kept unchanged).
This issue is to add the first CLI arguments for dose.py, allowing:
-h or --help for help
--config=CONFIG for setting up a specific configuration file (or directory, meaning a .dose.conf should be created there)
--size=SIZE for setting a initial window size like 200x200 (fractals CLI would help)
--position=POSITION, parsed like the size
--opacity=OPACITY, a value from 0 (transparent) to 255 (opaque)
--flip and --noflip to ensure whether image flipping should be done
So the configuration should have the following priority levels (for reading):
CLI arguments
Local config file, passed as --config or as a ./.dose.conf file
User config file $HOME/.dose.conf
Global defaults as "hardcoded" in dose.py
The text was updated successfully, but these errors were encountered:
Today, dose.py has a GUI configuration as well as a CLI command-line approach that allows a fast call like
dose tox -v
ordose "cat my_code.lang | my_interpreter.sh"
and many things alike. However, parameters like the-v
in that example are for the given command, not for dose, i.e., that meansdose "tox -v"
.A solution for giving CLI arguments for dose.py would be allowing them to happen BEFORE the command, which would be known based on the char "-" and from the context, e.g.
dose.py --config dose.conf tox -v
would mean:tox -v
$HOME/.dose.conf
would still be a fallback for "defaults" not explicitly written in the given alternative, though it should be kept unchanged).This issue is to add the first CLI arguments for dose.py, allowing:
-h
or--help
for help--config=CONFIG
for setting up a specific configuration file (or directory, meaning a.dose.conf
should be created there)--size=SIZE
for setting a initial window size like200x200
(fractals CLI would help)--position=POSITION
, parsed like the size--opacity=OPACITY
, a value from 0 (transparent) to 255 (opaque)--flip
and--noflip
to ensure whether image flipping should be doneSo the configuration should have the following priority levels (for reading):
--config
or as a./.dose.conf
file$HOME/.dose.conf
The text was updated successfully, but these errors were encountered: