python-fire icon indicating copy to clipboard operation
python-fire copied to clipboard

how to hide SELF parameter from the help message?

Open matteoredaelli opened this issue 5 years ago • 2 comments

I use fire as suggested by "Version 4: fire.Fire()"

When I run "mycmd search --help" I get a nice help text but I'd like to remove the not useful/internal parameter SELF If it my fault or a bug?

Thanks in advance

NAME
    mycmd search - Search objects  

SYNOPSIS
    mycmd search SELF <flags>

DESCRIPTION
    filter: is a  query string like (samaccountname=matteo)

POSITIONAL ARGUMENTS
    SELF

FLAGS
    --filter=FILTER

matteoredaelli avatar Sep 27 '20 08:09 matteoredaelli

@matteoredaelli would you be able to post a snippet or link the file that lead to this output?

bradleydamato avatar Oct 05 '20 14:10 bradleydamato

Sure.

https://gitlab.com/matteoredaelli/ad/-/blob/ab1a08ebf397753693213b39048411d35c45caf9/ad.py

Thanks Matteo

matteoredaelli avatar Oct 05 '20 16:10 matteoredaelli