Skip to content

Commit 7190598

Browse files
committed
Flags now have abbreviations
1 parent 71f980c commit 7190598

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

python2.7/music-organizer.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,35 @@
3030
All names are made lowercase and separated by dashes for easier
3131
navigation in a Linux filesystem.'''
3232
)
33-
parser.add_argument('--delete-conflicts', action='store_true',
33+
parser.add_argument('-d','--delete-conflicts', action='store_true',
3434
dest='delete_conflicts',
3535
help='''If an artist has duplicate tracks with the same name,
3636
delete them. Note this might always be best in case an
3737
artist has multiple versions. To keep multiple versions,
3838
fix the tag information.''')
39-
parser.add_argument('--ignore-multiple-artists', action='store_true',
39+
parser.add_argument('-m','--ignore-multiple-artists', action='store_true',
4040
dest='ignore_multiple_artists',
4141
help='''This script will prompt for confirmation if an artist
4242
directory has songs with more than 2 different tags.
4343
This flag disables the confirmation and won't perform
4444
this check.''')
45-
parser.add_argument('--collection', action='store_true',
45+
parser.add_argument('-c','--collection', action='store_true',
4646
help='''Operate in 'collection' mode and run 'artist' mode
4747
on every subdirectory.''')
48-
parser.add_argument('--artist', action='store_true',
48+
parser.add_argument('-a', '--artist', action='store_true',
4949
help='''Operate in 'artist' mode and copy all songs to the
5050
root of the directory and cleanly format the names to
5151
be easily typed and navigated in a shell.''')
52-
parser.add_argument('--delete-unrecognized-extensions', action='store_true',
52+
parser.add_argument('-e','--delete-unrecognized-extensions', action='store_true',
5353
dest='delete_unrecognized')
54-
parser.add_argument('--album', action='store_true',
54+
parser.add_argument('-A','--album', action='store_true',
5555
dest='album',
5656
help='''Adds album folder inside the artist folder to sort out
5757
albums''')
58-
parser.add_argument('--numbering', action='store_true',
58+
parser.add_argument('-n','--numbering', action='store_true',
5959
dest='numbering',
6060
help='''Adds numbering in front of sorted songs''')
61-
parser.add_argument('--capital', action='store_true',
61+
parser.add_argument('-C','--capital', action='store_true',
6262
dest='capital',
6363
help='''Makes the first letter of a song capital''')
6464
args = parser.parse_args()

0 commit comments

Comments
 (0)