@@ -18,7 +18,7 @@ namespace GalleryTools.Commands
1818{
1919 public static class ReserveNamespacesCommand
2020 {
21- private const int DefaultSleep = 0 ;
21+ private const int DefaultSleepSeconds = 0 ;
2222 private const string PathOption = "--path" ;
2323
2424 public static void Configure ( CommandLineApplication config )
@@ -33,7 +33,7 @@ public static void Configure(CommandLineApplication config)
3333
3434 var sleepDurationOption = config . Option (
3535 "-s | --sleep" ,
36- $ "The duration in seconds to sleep between each reservation (default: 0 ).",
36+ $ "The duration in seconds to sleep between each reservation (default: { DefaultSleepSeconds } ).",
3737 CommandOptionType . SingleValue ) ;
3838
3939 var unreserveOption = config . Option (
@@ -58,7 +58,7 @@ private static async Task<int> ExecuteAsync(
5858 return 1 ;
5959 }
6060
61- var sleepDuration = TimeSpan . FromSeconds ( DefaultSleep ) ;
61+ var sleepDuration = TimeSpan . FromSeconds ( DefaultSleepSeconds ) ;
6262 if ( sleepDurationOption . HasValue ( ) )
6363 {
6464 sleepDuration = TimeSpan . FromSeconds ( int . Parse ( sleepDurationOption . Value ( ) ) ) ;
@@ -75,7 +75,7 @@ private static async Task<int> ExecuteAsync(
7575 var path = pathOption . Value ( ) ;
7676 var completedPath = path + ".progress" ;
7777 var remainingList = GetRemainingList ( path , completedPath ) ;
78- Console . WriteLine ( $ "{ remainingList . Count } reserved namespaces (s) to { ( unreserve ? "remove" : "add" ) } .") ;
78+ Console . WriteLine ( $ "{ remainingList . Count } reserved namespace (s) to { ( unreserve ? "remove" : "add" ) } .") ;
7979 if ( ! remainingList . Any ( ) )
8080 {
8181 Console . WriteLine ( "No namespaces were found to reserve." ) ;
0 commit comments