Alphabetically sort patterns list
Ensures that when the users lists the available patterns, they are presented in alphabetical order. Helps find the desired pattern faster.
This commit is contained in:
parent
92f8e08aac
commit
e5901b9f44
@ -78,7 +78,7 @@ def main():
|
|||||||
standalone = Standalone(args, args.pattern)
|
standalone = Standalone(args, args.pattern)
|
||||||
if args.list:
|
if args.list:
|
||||||
try:
|
try:
|
||||||
direct = os.listdir(config_patterns_directory)
|
direct = sorted(os.listdir(config_patterns_directory))
|
||||||
for d in direct:
|
for d in direct:
|
||||||
print(d)
|
print(d)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user