-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added quiet mode to not show output. #103
Conversation
phockup.py
Outdated
@@ -10,7 +10,7 @@ | |||
from src.printer import Printer | |||
|
|||
|
|||
__version__ = "1.5.26" | |||
__version__ = "1.5.27" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change as I will be bumping the version with multiple PRs merged. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oke, revert the version to 1.5.26
src/phockup.py
Outdated
@@ -140,7 +141,8 @@ def process_file(self, filename): | |||
if str.endswith(filename, '.xmp'): | |||
return None | |||
|
|||
printer.line(filename, True) | |||
if not self.quiet: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all these conditions added for this flag should be passed as a method call to the Printer class and handle the logic to not print anything there. Something like printer.should_print(self.quiet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have also processed this feedback.
@roykrikke can you please add info about the new flag to the readme. |
) * Removed for compatibility with Windows * Implemented --maxdepth to limit recursion on input directory Arbitrary limit of 255 set for command line option #92 * Test compatibility for Windows (#102) * Migrated to a more compatible filename for testing exiftool * --Migrated Windows escaping to quoted input rather than shlex.quote escaping. --Added space and punctuation test --Added additional test image * --Updated trailing slash test to use Windows specific slashes on win32 * --Updated trailing slash test to use Windows specific slashes on win32 * --revert unintended commit * Added quiet mode to not show output. (#103) * Arbitrary text change to help to test commits * Updated readme.md with maxdepth details Updated defaults to support --maxdepth=0 to allow processsing only the input directory without any subdirectory traversal. Co-authored-by: roykrikke <[email protected]> Co-authored-by: Ivan Dokov <[email protected]>
I added option "-q", "--quiet" to run phockup without output. I think this is a useful addition.