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
But I don't want Success! in console, if I want get help or version.
D:\Киролайна>python SashaClizePrint.py --help
Usage: SashaClizePrint.py [OPTIONS]
Change log levels via command line.
User select, which logging messages to see. See about 6 log levels here: https://logbook.readthedocs.io/en/stable/quickstart.html
Options:
--logbook-level, --ll=STR user selectlogging level (default: NOTICE)
Other actions:
-h, --help Show the help
--version Show version.
Success!
1. Summary
I don't understand, how I can disable
print()
in output, if I run command with--help
or--version
.2. Example
For example, I have
SashaClizePrint.py
file, based on my previous questions:3. Command line
3.1. Expected
I want, that
Success!
print, if I run this file.3.2. Non-expected
But I don't want
Success!
in console, if I want get help or version.4. Argumentation
In real, I want beautiful colored output instead of
print("Success!")
, for example, as here.I don't find, how I can log this output.
Thanks.
The text was updated successfully, but these errors were encountered: