Skip to content

Conversation

@kssvrk
Copy link

@kssvrk kssvrk commented Dec 25, 2020

This is a PR against Issue 46

I have modified the sys argv methods and added CLI through 3 different arguments

  1. Required clean_dir variable to clean, throws OSERROR if wrong folder is passed.
  2. arrange modes of "strong" and "weak"
  3. nowarning flag.

Accordingly i modified the main file with choice variable and validation using exceptions. Did a little bit of code cleaning.

@prashantsengar
Copy link
Owner

Thanks @kssvrk !

There are a few things that I would like to change:

  1. If target directory is not provided, it should work on the current directory
  2. Default cleaning behaviour should be weak arrange and not strong
  3. I don't think --arrange flag should be even an option since that's the only thing that we do.

It should rather be like

  1. cleanpy -> weak arrange current directory
  2. cleanpy TARGET_DIR -> weak arrange TARGET_DIR
  3. cleanpy --strong TARGET_DIR -> strong arrange TARGET_DIR
  4. cleanpy --strong -nw -> strong arrange current directory with no warning

For the point 3 in the first paragraph, I would also ask how would we move ahead when we have large files feature integrated as well. A new flag --large-files? But I think that the default behavior of cleanpy should be arranging only

@kssvrk
Copy link
Author

kssvrk commented Dec 25, 2020 via email

@prashantsengar
Copy link
Owner

prashantsengar commented Dec 25, 2020 via email

@kssvrk
Copy link
Author

kssvrk commented Dec 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants