-
Notifications
You must be signed in to change notification settings - Fork 108
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
Feature added: Issue #65 #204
Conversation
This is for issue #65 not 63 :) |
Please add tests for the new features. |
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 take a look at the comments I left and the tests.
@@ -287,6 +287,28 @@ def parse_args(args=sys.argv[1:]): | |||
""" | |||
) | |||
|
|||
parser.add_argument( | |||
'--filename_suffix', |
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 change the _
with a -
|
||
parser.add_argument( | ||
'-ao', | ||
'--filename_add_original', |
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 change the _
with a -
base_name=os.path.basename(original_filename) | ||
f_name=os.path.splitext(base_name)[0] | ||
target_filename=''.join(filename) + '_' + f_name | ||
#debug |
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 remove this comment
|
||
if self.filename_suffix: | ||
target_filename=target_filename + '_' + self.filename_suffix | ||
# print(target_filename) |
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 remove this comment
I'm closing this PR as it needs to be updated to fit the current state of the code as it has conflicts. Also some of the features are already merged. |
Added feature - Issue #65.
New flags added 🥳
--filename_add_original (or) -ao : Adds the original filename to the new filename
--filename_suffix : Adds a custom suffix to the new filename.
Sample Output: