df
This commit is contained in:
@@ -340,7 +340,6 @@ class SharedArgs:
|
||||
# Path/File arguments
|
||||
PATH = CmdletArg("path", type="string", description="File or directory path.")
|
||||
|
||||
OUTPUT = CmdletArg("output", type="string", description="Output file path.")
|
||||
|
||||
# Generic arguments
|
||||
QUERY = CmdletArg(
|
||||
@@ -782,7 +781,7 @@ def resolve_target_dir(
|
||||
*,
|
||||
handle_creations: bool = True
|
||||
) -> Optional[Path]:
|
||||
"""Resolve a target directory from -path, -output, -storage, or config fallback.
|
||||
"""Resolve a target directory from -path, -storage, or config fallback.
|
||||
|
||||
Args:
|
||||
parsed: Parsed cmdlet arguments dict.
|
||||
@@ -792,8 +791,8 @@ def resolve_target_dir(
|
||||
Returns:
|
||||
Path to the resolved directory, or None if invalid.
|
||||
"""
|
||||
# Priority 1: Explicit -path or -output
|
||||
target = parsed.get("path") or parsed.get("output")
|
||||
# Priority 1: Explicit -path
|
||||
target = parsed.get("path")
|
||||
if target:
|
||||
try:
|
||||
p = Path(str(target)).expanduser().resolve()
|
||||
|
||||
Reference in New Issue
Block a user