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
The cause is indeed the parse_known_args, the arguments for the commandline are build dynamically based on the type and format of the asset in question, this unfortunately results in the second print for which I have yet to find a solution.
When I call
pt
//
usage: pt [-h] [-v] [-q] {a,i,t} ...
pt: error: too few arguments
usage: pt [-h] [-v] [-q] {a,i,t} ...
pt: error: too few arguments
//
pt -h
//
usage: pt [-h] [-v] [-q] {a,i,t} ...
Platinumial Peragro commandline tool
optional arguments:
-h, --help show this help message and exit
-v, --verbose Be verbose
-q, --quiet Hide most output
subcommands:
valid subcommands
{a,i,t} additional help
a Analyze a given file
i Inspect a given file or hash in store
t Transcode a given file
usage: pt [-h] [-v] [-q] {a,i,t} ...
Platinumial Peragro commandline tool
optional arguments:
-h, --help show this help message and exit
-v, --verbose Be verbose
-q, --quiet Hide most output
subcommands:
valid subcommands
{a,i,t} additional help
a Analyze a given file
i Inspect a given file or hash in store
t Transcode a given file`
//
Also this behaviour follows on other unfinished commands like pt a & pt t
Through debugging I found the cause of this problem in cli.py line 173,
args, options_args = parser.parse_known_args()
Is there any way to avoid this stdout display? I went through the argparse documentation, but can't able to find any solution!
The text was updated successfully, but these errors were encountered: