tweaks, fix verbosity

This commit is contained in:
Will McGugan
2023-05-20 10:42:04 +01:00
parent b29078d8f2
commit 006850163d
3 changed files with 8 additions and 4 deletions

View File

@@ -162,7 +162,11 @@ class UserCommandData:
else:
# Get the value of the counting option
count = next(itertools.chain.from_iterable(value_data), 1)
count = int(count)
try:
count = int(count)
except ValueError:
# TODO: Not sure if this is the right thing to do
count = 1
if option_name.startswith("--"):
args.extend([option_name] * count)
else:

View File

@@ -209,7 +209,7 @@ class CommandBuilder(Screen):
class Trogon(App):
CSS_PATH = Path(__file__).parent / "textual_click.scss"
CSS_PATH = Path(__file__).parent / "trogon.scss"
def __init__(
self,

View File

@@ -99,7 +99,7 @@ CommandTree {
CommandTree:focus {
border: tall $secondary;
border: tall $success;
}
CommandTree > .tree--cursor {
@@ -177,7 +177,7 @@ CommandInfo {
}
.command-info-header-text {
padding: 1 2 0 2;
padding: 1 1 0 2;
}
$command-info-header-bg: $primary-darken-1;